haskell-ide-engine
haskell-ide-engine copied to clipboard
Code completion is not always instantaneous
Currently there are times where a code completion request takes some time to return, even if the module is already cached. I think this may be because IdeM
is getting blocked by some long-running request.
Would the solution be running the completions in a separate thread?
I guess that would solve it but I would like to find what exact request to IdeM is taking so long, the delay is in the order of 5-10 seconds
Is this still a problem?
I think I'm seeing the problem with HIE 1.0.0, GHC 8.6.5, Neovim 0.4.3, Neovim-LanguageClient. It freezes the editor for several seconds, but I cannot find a pattern: sometimes HIE works with no problems at all, sometimes it shows the issue immediately, sometimes it appears after a while. I may try to debug it, but I don't know where or how to start