Search code examples
sassphpstorm

PhpStorm: SCSS File Watcher Settings


I need help setting up my SCSS file watcher in PhpStorm. I'm on Ubuntu, I have PhpStorm 6, I have RVM with Ruby 1.9.3p194 and Sass 3.2.5. I've set my File Watcher options in, Settings >> File Watcher as follows:

enter image description here

Once I had done that, I changed something in my .SCSS file but I got this error.

...-1.9.3-p194/bin/sass --no-cache --update style_update.scss:style_update.css
/usr/bin/env: ruby: No such file or directory

(I added three dots at the begin of the first line to make the line shorter) So what might be the problem?


Solution

  • The problem is that IDE is not able to find ruby in the PATH. Note that it may be different in terminal and in applications that you start from Ubuntu launchpad.

    Use the Environment variables option in the file watcher configuration to specify custom PATH value with a directory containing the required executables.