PHPStorm not auto uploading compiled CSS files WITH upload external changes ON

Hi,
So clicking CTRL + S on a less file executes the following process:

1. Uploading the less file

2. File watcher executes node lessc module

3. File is being compiled successfully

4. Nothing happens. Process done. The file will be uploaded only when I click on a file (or focus a file).

What I want to achieve is a seamless process: CTRL+S -> Compilation -> Upload. Right now, the upload will happen only after a file focus. Upload external updates is ON of course.

Anybody knows how to achieve that?
Thanks!

0
4 comments

Looks like PHPStorm doesn't see the generated file immediately once the generation completes. Please provide a screenshot of your file watcher settings (make sure that the dialog is wide enough so that I can see all settings). I'm mostly interested in watcher Arguments and Output paths to refresh settings

0

Thanks for helping Elena, here's a screenshot:

0

You didn't set up Output paths to refresh correctly. This option is used by IDE to synchronize its file system with external changes - you need to make sure that the pattern specified there matches the actual Less compiler output so that the IDE knows where to look for generated files. According to your settings, it should refresh file_dir/file_name.css, whereas the actual path of generated file is file_dir/../css/file_name.css

0

Awesome that worked! Thanks Elena!

2

Please sign in to leave a comment.