atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Need to re-start atom before ghc-mod works with stack #165

Closed BillyBadBoy closed 8 years ago

BillyBadBoy commented 8 years ago

steps to reproduce:

However, if I close and re-open atom (sometimes several times) it works OK.


I've noticed that if I re-boot my machine and run stack path --snapshot-install-root --local-install-root from the command line it takes a long time to run the first time (over 5 seconds), but runs quickly when re-run. (If I then run atom it works first time.)


Is there some kind of timeout issue tricking atom into thinking that stack path has failed ?

lierdakil commented 8 years ago

There is indeed a timeout for some initialization operations, misnamed syncTimeout. You can change that in settings. Note that I pushed out 1.15.2 which has that renamed to initTimeout with a more accurate description and also raised it from 5 to 60 seconds (there's no need for a short timeout now, since it doesn't block Atom anymore, but a reasonable timeout is still a good idea generally to avoid infinite wait times). You might want to update.

BillyBadBoy commented 8 years ago

updated... and now it works !!!