SCSS filewatch Immediate synchronization doesn't work most of the time

Answered

I have a local Tomcat server + SCSS watcher setup, deploying the exploded war of my website, and struggling to get my CSS changes to always reflect in the browser. The server is running in debug mode, "Immediate sync" checked on file watcher but doesn't seem to work as intended since the changes aren't immediately displayed in compiled CSS file if I check it manually. The watcher only triggers on "Save all" or frame-deactivation, likely due to Tomcats "Update resources on frame de-activation". 

Any ideas where the issue might be and what am I doing wrong? IDEA version 2016.1.3, not Webstorm. 

2 comments
Comment actions Permalink

Did you configure the file watcher to check the SCSS sources in the project source location and generate CSS files in the artifact output location?

If CSS files are generated in the project sources, there is an extra update step needed so that IDEA updates the artifact output which happens on frame activation or when you trigger Update action.

0
Comment actions Permalink

> Did you configure the file watcher to check the SCSS sources in the project source location and generate CSS files in the artifact output location?

No, the watcher generates CSS file to project source, which should later be packaged by IDEA to artifact output location. The issue is that it doesn't always trigger on SCSS changes, not that it generates files to wrong folder/too late. 

> If CSS files are generated in the project sources, there is an extra update step needed so that IDEA updates the artifact output which happens on frame activation or when you trigger Update action.

Yes. My issue is that when the update step is triggered, the deployed CSS files are not up to date due to watcher not reaction to changes. 

However, switching to node-sass compiler from ruby seems to have solved my issue and the watcher triggers instantly as it should, having CSS file ready for IDEA's update action. Guess it's just ruby compiler that is slow/unresponsive for whatever reason in combination with IDEA. 

 

0

Please sign in to leave a comment.