Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm: SCSS File Watcher Settings

Tags:

sass

phpstorm

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?

like image 428
tsega Avatar asked Apr 02 '13 09:04

tsega


People also ask

How do I set up file watcher?

Open the Settings for New Projects dialog (File | New Projects Setup | Settings/Preferences for New Projects) , go to Tools | File Watchers, and select the checkboxes next to the required File Watchers.

Is sass the same as SCSS?

SASS (Syntactically Awesome Style Sheets) is a pre-processor scripting language that will be compiled or interpreted into CSS. SassScript is itself a scripting language whereas SCSS is the main syntax for the SASS which builds on top of the existing CSS syntax.

Does SCSS need to be compiled?

scss is compiled into CSS when you save your project manually or automatically and how the changes to _grid. scss are reflected in the generated CSS file.

What are file watchers?

Event-based processing through file arrivals A file-watcher is a process which monitors a specific directory for the arrival of any files. The file-watcher, upon the arrival of any file, will trigger a follow-up process.


1 Answers

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.

like image 101
CrazyCoder Avatar answered Sep 27 '22 17:09

CrazyCoder