SASS File Watcher error

Hello everyone

I'm new to SASS and I get the following error in PhpStorm when using File Watcher Plug-in 

cmd.exe /D /C call C:/Ruby23-x64/bin/sass.bat compile path/to/project style.sass
Errno::ENOENT: No such file or directory @ rb_sysopen - compile
Use --trace for backtrace.

It does not compile sass file to css so I'm a bit stuck, so does anyone know where is my mistake?

Many thanks guys :)

4 comments
Comment actions Permalink

Hello,

Looks like it cannot determine the file path. Are you able to transpile the file via command line?

If you press "Insert Macro" and select FileDir in the list, can you see the correct path in the preview?

0
Comment actions Permalink

`compile path/to/project style.sass` arguments don't match your file watcher arguments - and these are not valid arguments for sass.bat, these are compass cmd options; for sass, you need using `--no-cache --update $FileName$:$FileNameWithoutExtension$.css`, like `cmd.exe /D /C call C:/Ruby193/bin/sass.bat --no-cache --update hh.sass:hh.css`

How many file watchers do you have configured?

0
Comment actions Permalink

Hello Elena,

I have sass, scss file watcher and compass file watcher as I got very confused which one do I need :( maybe I shall uninstall the compass file watcher then

0
Comment actions Permalink

yes, seems so. Your compass watcher is not properly configured. And having 2 compilers registered for a single file type makes no sense anyway

0

Please sign in to leave a comment.