Everytime I hit Ctrl + S in Dart Editor the application freezes for several seconds, sometimes up to half a minute. After that it says Build completed successfully in the Tools Output.
I have a habit of constantly saving my work. Having that operation take so long is aggravating, to say the least. It makes the editor almost unusable to me.
Is there any way to disable the automatic on-save build?
EDIT 1:
Stopping Pub Serve helped in some cases, but the editor still froze every other time, eventhough Build completed successfully did not appear in the Tools Output. It seems that Refreshing workspace was taking really long.
Since I could not remember this problem ever being so severe I looked into my older projects to find anything I did differently. In fact this time I put my sources into the /lib folder and referenced them via packages:<myproject>/<myproject>.dart. Surprisingly moving the /lib to /web/lib and importing via lib/<myproject>.dart instead seems to have fixed the freezing issue. Any ideas why that might be?
EDIT 2:
My system:
- Dart Editor version 1.9.3.release (STABLE)
- Dart SDK version 1.9.3
- Lenovo IdeaPad Y510p
- Intel Core i7-4700MQ CPU @ 2.40GHz
- 8GB RAM
- Windows 8.1 Pro
../lib/<myproject>.dartis an invalid import path. You shouldn't "walk" outside a package top-level directory in import paths (except in html-imports in Polymer where nopackage:exists). You didn't provide more information about your Dart version and OS. - Günter Zöchbauerlibfolder inweb. You can try to disable the analyzis server in the DartEditor settings. I think you should create a bug report at dartbug.com. I'm sure they are interested in your experience. Please crosslink the issue and this SO question. - Günter Zöchbauer