Search code examples
javascripthtmlcsssasswebstorm

Sass can't compile using webstorm


When I want to use Sass in the Webstorm IDE it seems to be using Ruby 1.8 (OS Default) rather than my RVM Ruby Version (1.9.x).

Now I can set the path for Sass in the Watcher-Configuration:

PATH=$PATH:$HOME/.rvm/bin

However then the next thing I run into is that other dependencies aren't found:

env: ruby_noexec_wrapper: No such file or directory

How can I configure WebStorm or my Mac, that it completely ignores the Builtin Ruby and always uses RVM (not just in the Terminal.app)


Solution

  • Instead of providing the compass command with watch parameter, provide a bash command with –login -c "compass compile" parameter.

    More info here: How to use compass in phpstorm?