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

HLS building forever with no notion of progress #4283

Closed
TotallyNotChase opened this issue Jun 7, 2024 · 6 comments
Closed

HLS building forever with no notion of progress #4283

TotallyNotChase opened this issue Jun 7, 2024 · 6 comments
Labels
status: needs triage type: support User support tickets, questions, help with setup etc.

Comments

@TotallyNotChase
Copy link

Your environment

Which OS do you use?
ArchLinux

Which version of GHC do you use and how did you install it?
GHC 9.6.4 and GHC 9.2.8

How is your project built (alternative: link to the project)?
cabal
https://github.com/mlabs-haskell/clb

Which LSP client (editor/plugin) do you use?

vscode-oss+vscode-haskell/
Which version of HLS do you use and how did you install it?

2.7.0.0 from ghcup
Have you configured HLS in any way (especially: a hie.yaml file)?
No

What's wrong?

HLS is building forever with no update on progress. Equivalent to "Progress: X/Y" with X not changing at all in VSCode. Tries with command line too (haskell-language-server src/Clb.hs) with no end in sight.

Is there any way to at least find the progress? cabal build doesn't take nearly as long.

Debug information

@TotallyNotChase TotallyNotChase added status: needs triage type: support User support tickets, questions, help with setup etc. labels Jun 7, 2024
@michaelpj
Copy link
Collaborator

I think this is ultimately haskell/hie-bios#405. If you run with a higher logging level you should get the process output from cabal in your logs, but ideally we would just track this progress in hie-bios and report it up.

@TotallyNotChase
Copy link
Author

I have run HLS with --debug and I still get nothing.

The last line simply notes down where the interface directory will be and that's the end of the logs while HLS keeps running forever

@wz1000
Copy link
Collaborator

wz1000 commented Jun 8, 2024

This could be #4046, can you try HLS 2.8.0.0?

@TotallyNotChase
Copy link
Author

I noticed that if I let it run for 4+ hours (haskell-language-server src/Clb.hs), it finally succeeds. But when I run it again, nothing is cached and it runs forever once again.

@TotallyNotChase
Copy link
Author

Looks like HLS 2.8.0.0 works!

Does that imply it was fixed in #4046 ?

@michaelpj
Copy link
Collaborator

Seems plausible! Sounds like it's fixed anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: support User support tickets, questions, help with setup etc.
Projects
None yet
Development

No branches or pull requests

3 participants