phpstorm - scss file watcher issue

2019-02-17 16:13发布

问题:

I am trying to setup phpstorm filewatcher in order to precompile my .scss, and I have the following error message :

"C:/Program Files/Ruby193/Ruby193/bin/compass.bat" --no-cache --update style.scss:style.css
'"ruby.exe"' n'est pas reconnu en tant que commande interne ou externe, 
    un programme executable ou un fichier de commandes.

Which translates in english to something like :

'"ruby.exe"' is not recognised as an internal or external command, 
    executable program or command file.

-I looked into this question, but it did not solve my problem : PhpStorm: SCSS File Watcher Settings

-Here is a screenshot of my settings.

Thks.

回答1:

A picture is worth a thousand words. Here is how you should set it.



回答2:

I believe you have two problems. One is that Ruby is set up in a very improper fashion, you have Ruby193/Ruby193, which perhaps poses a problem. Another problem is that you've changed your environment variables. Keep it empty and see if it works, it works fine for me, so I guess if there is any problem, its with your Ruby setup.

Another potential problems is that your PATH might not be set up right to match with Ruby, so double-check your path.



标签: sass phpstorm