vscode-haskell icon indicating copy to clipboard operation
vscode-haskell copied to clipboard

language server restarting is always very slow on MacOS 2.6 GHz 6-Core Intel Core i7

Open archywillhe opened this issue 2 years ago • 1 comments

Anyone else on other OS having the same problems?

It takes like 1 minute+ to restart everything..

Is there a way to fix this? What is the bottleneck?

archywillhe avatar Sep 06 '23 13:09 archywillhe

On startup, we need to find the GHC version and compilation arguments used to compile your project. In cabal projects, this involves a number of cabal exec and cabal repl calls. In big projects, cabal can take a couple of seconds per command.

And then HLS itself has to compile your project for many IDE features.

In short, it very much depends on the size of your project and how you compile it.

fendor avatar Sep 07 '23 08:09 fendor