Problem with external typescript file watchers

While developing using angular-cli or webpack-dev-server that serve as file watchers that provide incremental builds and dev servers, there is issue with file change detection. While editing source files these tools detect changes basically after each file change before file is actually saved. This results in loads of unwanted erroneous reloads since it compiles code that is not finished. Other IDE's like Visual Code don't have this issue.

Steps I took to fix the issue which that didn't help:

  • Turned off automatic file saving
  • Turned off typescript compiler
  • Turned off tslint

Is there a another way to tell Intellij (or Webstorm) to not make changes to files on disk until I save the file?

0
3 comments

Are you editing the file using debug session? Live Edit (that is active during debugging) auto-saves files to provide live reload - this might be the issue

0
Avatar
Permanently deleted user

Tried to edit with nothing running and live edit plugin disabled, but it didn't help. Fortunately your comment made me check other plugins that might have interfered. I found out that issue was caused by SonarLint plugin that saved files to run analysis on the changes. Disabling the plugin fixed the issue. Leaving the comment for others with same problem.

0

I see, thanks for update:)

0

Please sign in to leave a comment.