neovimhaskell / nvim-hs

Neovim API for Haskell plugins as well as the plugin provider
Other
267 stars 18 forks source link

Timeout for synchronous functions #29

Closed saep closed 6 years ago

saep commented 9 years ago

Neovim hangs if the computation does not finish. This can happen, for example, if you accidently force an infinite list. Neovim shouldn't have to be killed because of that.

tarruda commented 9 years ago

This definitely needs to be fixed on Neovim side by supporting ctrl+c properly while waiting for a msgpack-rpc call.

saep commented 9 years ago

If ctrl+c is supposed to work it would simplify things a lot. Still, it could be useful to have some kind of garbage collector for threads which are stuck. ;-)