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

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

ionic serve

Running the project with a hot reload works as expected.

However, there is a strange and very annoying behavior:

  • When I stay (I hold the mouse cursor) in the IDE, I can write text many times, and then cmd+S

    , it rebuilds the project very quickly (200ms) and will not slow down the IDE at all.
  • But when I go outside of the IDE: it also triggers the build (which is ok I think because WebStorm is saving the edited files at this time) and when I go back to the IDE whenever this happens I have very long (> 3s) when I'm completely blocked (I can't even print something).

Notes:

  • Seems to be more in html files than js files.
  • I am using macOS Sierra on MBP 2013
  • I used PyCharm (also from IntelliJ), with the same problem. No problem with SublimeText3. It seems to be related to IntelliJ.

Any idea? Thank.

+3


source to share


1 answer


Please exclude the www

folder from indexing ( Mark directory as/Excluded

action in the right-click menu) to avoid re-indexing the project every time the generated files flash to disk (which usually happens when you move focus from the IDE and back). If this does not help, try disabling "Sync files on frame activation" ( Preferences | Appearance & Behavior| System settings

)



+4


source







All Articles