Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
archywillhe opened this issue Sep 6, 2023 · 1 comment

Comments

@archywillhe
Copy link

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?

@fendor
Copy link
Collaborator

fendor commented Sep 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants