Webstorm 8: "cannot launch compass executable file" in os x

I recently installed compass and configured "Compass support" in Webstorm 8 for OS X. I can run compass from the command line but when I set it up in "Compass Support", it says "Cannot launch compass exectable file". My config settings are as follows:

Compass executable file: /Users/michael/.rvm/gems/ruby-head/gems/compass-0.12.6/bin/compass
Config path: /Users/michael/WebstormProjects/testsite/config.rb

I've also verified that the path to compass exists but Webstorm 8 doesn't seem to like identify it.

I use zsh as my shell, but when using it inside webstorm terminal, it doesn't recognize compass.

Note: I use rvm to manage rubies

3 comments

Hi there,

Please can you check if running IDE from terminal (open -a /Applications/WebStorm.app/) solves the problem?

0

Please can you check if running WebStorm from terminal (open -a /Applications/WebStorm.app/) makes any difference?

0

Looks the issue was with my rvm configuration in zsh. I was eventually able to fix it; detailed below:

Apparently my rvm configuration was in the .zprofile file, so I moved it into .zshrc. I moved the following lines there:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"


After restarting the shell, I ran into another issue where the rvm scripts were throwing an error. I was able to resolve by the following command:

rm -f ~/.zcompdump*


That resolved the issue with loading rvm into shell. I then changed the default ruby to ruby-head:

rvm --default use ruby-head



I relaunched Webstorm and it was fixed. Hope this helps others.

0

Please sign in to leave a comment.