PhpStorm hangs when editing JS - Closure Compiler File Watcher

I'm using PhpStorm 2023.3.2 on a Ubuntu 20.04.5 LTS VM. When editing JavaScript files, the UI regularly hangs - with "Running File Watcher 'Closure Compiler'" active in the status bar. When it hangs I'm unable to click anything, even to cancel the file watcher, and it can last anything from 15 seconds to multiple minutes before it becomes usable again. Occasionally PhpStorm will close entirely, and I'll have to start it again manually. Can anyone suggest what I should try in order to fix this?

The VM has 4GB memory, and PhpStorm lists around "700 of 1500M" in the status bar.

0

should the issue occur again, please share the log folder zipped (Help > Collect logs and Diagnostic Data) plus a screenshot of your file watcher settings

0

Thanks. I've gathered the diagnostic data and screenshots (after it's happened again). What is the best way to send this to you? I'd rather not post it publicly as it may contain sensitive data.

0
You can use the JetBrains Upload service (https://uploads.jetbrains.com/) - upload the files there and then let me known the upload ID
0

Thanks. The upload ID is 2023_02_10_d6N7iEVHE6j8A5RcYx4Eya

0

No dumps were actually written unfortunately
What working directory is set in your file watcher settings? Please make sure to specify the Output paths to refresh: option ($FileNameWithoutExtension$.min.js as your compiler seems to create a minified file in the same folder where the original file resides) and disable the Create output file from stdout (nothing is written to stdout, and the target file is specified explicitly with --js_output_file option). I'd also suggest disabling the Auto-save option to avoid triggering the compiler on every key press

0

Thanks for your reply. I've made the changes you've suggested to the settings, and although the hangs are now less frequent, they're still happening when I save the .js file. The first time I hit save, the UI was frozen for around 5 minutes.

Regarding the working directory, I have that set to $FileDir$

The environmental variables field is empty.

0

请先登录再写评论。