PHPStorm SCSS file watcher is compiling the wrong file

The file watcher for SCSS files has been working correctly but today, suddenly, it's become stuck compile one specific SCSS file, no matter which SCSS file I update.

I update file-A.scss and the output windows says that file-G.SCSS has been compiled.

I update file-B.scss and the output windows says that file-G.SCSS has been compiled.

And so on.  I've restarted the app, I've turned the file watcher off and then on again.  Keeps happening, the same file gets compiled every time.

0
3 comments

what do your files look like? When you are updating partials (files that are included in the other, main scss file), the resultant .css is only created for 'main' file - no separate .css files for partials are generated, changes are merged into the main .css

0
Avatar
Permanently deleted user

This seems rather presumptive. How can this be disabled so that the partial file is also/only compiled?

I have an scss file "B.scss" that needs to be compiled to css, but is also imported into another scss file "A.scss".   Right now when I change B.scss, PhpStorm is only compiling A.scss but I need the B.css output.

0

If you like to produce .css for files prefixed with underscore, you need to add COMPILE_PARTIAL=true variable to your file watcher settings:


Also, make sure that Track only root files is off.

see the comments in https://youtrack.jetbrains.com/issue/WEB-13459

0

Please sign in to leave a comment.