File watcher runs while typing even with sync off Follow
I have a file watcher that runs while I'm typing even though I have Immediate file synchronization turned off. I've turned it on and off several times hoping it would fix it but no luck. I'm using IDEA 2017.2.5 on Windows 10 so any ideas on how to fix this?
Please sign in to leave a comment.
Does the issue occur when editing the files during JavaScript debug session? Live Edit (that is active during debugging) auto-saves files to provide live reload - this might be the issue.
Also, do you have any custom plugins installed? They can, too, be responsible for auto-saving - for example, Flow service, when enabled, flashes files to disk to submit up-to-date files to Flow type checker, third-party SonarLint and ESLint plugins are known for causing such issues, as they save files to run analysis on the changes, etc.
I am not debugging and don't even have the server running right now. I don't have Flow or SonarLint installed and ESLint is disabled for the project. With my version it appears ESLint is built in and I don't have the plugin installed? Do I still need to install the plugin? One thing to note is I exported the file watcher from another project and imported it - don't know if this might cause problems?
>With my version it appears ESLint is built in and I don't have the plugin installed? Do I still need to install the plugin?
No; ESlint support is built in, and the built-in ESLint integration doesn't cause file saving on editing
>One thing to note is I exported the file watcher from another project and imported it - don't know if this might cause problems?
No; but you can try re-creating it to be on safe side.
Do you have any other file watchers enabled?
I deleted and recreated the file watcher and still the same problem. I don't have any other file watchers.
Please provide your idea.log
None of the plugins look suspicious, but I can't recreate the issue using a watcher similar to yours, so it still looks as if smth else is responsible for saving your files.
Can you try disabling all third-party plugins (.ignore, AsciiDoc, Gradle View, Lombok Plugin and Mongo Plugin) and check if the issue persists? also, what working directory is chosen in file watcher settings? Please expand the Other options section and attach a screenshot
I turned off all custom plugins except File Watchers and the problem still persists.
Here are my file watcher settings.
What's strange is I use this same file watcher on another React project and don't have this problem.
Can you provide a project that shows up the issue, or try to figure out the difference between your 2 projects? As I can't recreate the issue with any of projects I've tried
I can't make a simple project that recreates it. With the problem that is having the problem I turned off the auto save but it actually auto saves while typing. Any idea on what could be causing this as it's probably the source of the problem.
As I have said, there is something that is causing files saving - and it's not a file watcher. as the issue is specific to your project, I can hardly advise on the reason unless you provide a project and steps... Are there any external watchers run? Any tools touching your files?
I have a reproducible project but it won't allow me to upload a ZIP file here. How do I get it to you?
You can upload it to our ftp server ( ftp://ftp.intellij.net/.uploads/ - anonymous login, .uploads directory has no permissions to list/download files, only for upload) and let me know the file name
The file is file-save.zip
Easy test is to make sure you have "Mark modified tabs with asterisk" turned on, open wp-web-cloud/src/shim.js, type some random characters and pause. The asterisk will show while typing then go away when you pause.
I'm using Java 8 on Windows 10.
thanks!
in Settings | Build, Execution, Deployment | Compiler, try disabling Build project automatically - does it help?
That fixed my problem and don't know why I had that enabled (I believe it is disabled by default). Thanks for the help.
On my run dialog I have the alert "Background compilation enabled" and did this for an old project. I believe I had to get into hidden settings but can't remember how I did that to turn it back off. Can you please let me know how to access that?
This is because you have
in Registry (Help | Find action, type Registry to locate it)
See https://youtrack.jetbrains.com/issue/IDEA-141638
I had the exact same problem (with Prettier as External Tool).
This topic put me on the right track : I added Flow JS support in WebStorm but I didn't notice that the setting "Save all modified files automatically" was enabled by default.
Settings location : Preferences | Languages & Frameworks > Save all modified files automatically
Thanks all :)