-
-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HLS fails to start: setNumCapabilities: Capability count (0) must be positive with one core or -j1
#2457
Comments
Hmm, thanks for reporting the issue fullfilling all the required info. |
Ok it seems a error reported by ghc cause the the number of concurrent threads set cant be zero: Dont know how is it even possible
|
Yeah, i also think so, thanks for linking them. #727 talks about a hang but i think it worths to pass -j2 to hls |
The right fix here is to amend the call site of |
Just tried this - it does work as a workaround 🎉! Thanks for the quick response on this issue everyone |
-j1
Hey. Just wanted to say that there is no workaround currently, when using the VSCode extension. I configured "haskell.serverExtraArgs": "-j2" but the args are somehow not getting forwarded. I tried j2 from the command line and that is fine, but it does not appear to be possible to set this from the VSCode extension. As this was in a VM, I worked around by assigning more cores, but I think it should be fixed properly. |
Please report this as a bug in the |
Did you mean to reopen this Pepe? |
|
Your environment
Which OS do you use:
Ubuntu 21.10 (in a vm with a windows host)
Which lsp-client do you use:
Vscode with Haskell extension
Describe your project (alternative: link to the project):
This is happening on a newly generated shpadoinkle project. (Instructions to generate here: https://shpadoinkle.org/getting-started)
Steps to reproduce
bash <( curl https://gitlab.com/platonic/shpadoinkle/-/raw/master/snowman/generate.sh )
nix environment selector
vscode extension to use theshell.nix
environment generated from the previous command.Expected behaviour
Haskell language server starts up
Actual behaviour
The server crashes 5 times in 3 minutes (impressive 🥇)
And looking at the output logs shows the following:
Include debug information
Debug output:
I don't have a
haskell-language-server-wrapper
, but I do havehaskell-language-server-wrapper-1.5.1-linux
; output below:Note: The commands were run in the
nix-shell
environmentI also have
haskell-language-server-1.5.1-linux-8.6.5
so I tried this as well:Paste the logs from the lsp-client, you can check instructions about for VS Code here
LSP logs:
The text was updated successfully, but these errors were encountered: