macossasspathphpstorm

'env: ruby_noexec_wrapper: No such file or directory' error in PhpStorm SASS compilation on Mac


I read around a lot and tried different things but my PhpStorm just doesn't want to compile my SASS/SCSS files into CSS files.

Here are pictures of my File Watcher configuration and the error message it causes:

My File Watcher configuration.

The error when the File Watcher runs (after saving changes).

I also tried doing it over External Tools, but although I tried two different approaches, both lead to the same error. The two configurations and the error can be seen in the following pictures:

My first approach over External Tools.

My second approach over External Tools.

The error caused by both approaches stating 'env: ruby_noexec_wrapper: No such file or directory'.

Does anyone know what I have to do to get it work?


Solution

  • On Mac it may be required to perform additional steps outlined in this answer to make the environment the same as in Terminal for the GUI applications.

    Most likely PATH is different.

    Another workaround is to start PhpStorm from the Terminal:

    open -a /Applications/PhpStorm.app/