WebStorm freezes for a long time on Ionic2 project with hot reload

Viewed 200

I created a simple Ionic2/3 project and just setup WebStorm, with all default settings.

When running the project with ionic serve, hot reload works as expected.

However, there is a strange and very annoying behaviour:

  • When I stay (I keep the mouse cursor into) in the IDE, I can write some text then cmd+Smany times, it rebuilds the project very fastly (200ms) and does not freeze the IDE at all.
  • But when I click outside of the IDE: it starts a build too (which is normal I guess because WebStorm save edited files at this time), and when I go back to the IDE, whenever it is, I have a very long (> 3s) freeze time while I'm completely blocked (I can't even type something).

Notes:

  • It seems to happen more on html files than on js files.
  • I'm using MacOS Sierra on a MBP 2013
  • I was using PyCharm (from IntelliJ too), with the exact same problem. No problem with SublimeText3. It seems to be IntelliJ related.

Any idea? Thanks.

1 Answers
Related