Errno::ENOENT: No such file or directory @ rb_sysopen - custom.scss

Hey there,

just switched from Netbeans to PHPStorm and can't compile scss files anymore. This is what I get inside my created css:

Backtrace:
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:484:in `read'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:484:in `update_stylesheet'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:209:in `each'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/plugin.rb:82:in `update_stylesheets'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb:340:in `watch_or_update'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb:51:in `process_result'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb:52:in `parse'
/var/lib/gems/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb:19:in `parse!'
/var/lib/gems/2.3.0/gems/sass-3.4.22/bin/scss:13:in `<top (required)>'
/usr/local/bin/scss:23:in `load'
/usr/local/bin/scss:23:in `<main>'

My settings:




0
3 comments

Well... The error just means that the file can't be found for some reason. You can try deleting sass cache:

rm .sass-cache/ -R

does it help? Also, does the same command work in terminal? Cd to the directory where your file is located, then run

/user/local/bin/scss --no-cache --update custom.scss:custom.css

there - what is the result?

0
Avatar
Permanently deleted user

Hey Elena,

thanks for your help!

When I run your second command everything works fine. But not inside PHPStorm. Unfortunately, I can't find any sass-cache directory. 

0

very strange - as all PHPStorm does is running the program and passing the specified arguments to it.

What does the command looks like in file watcher Run console? Please provide the full console output

0

Please sign in to leave a comment.