-
-
Notifications
You must be signed in to change notification settings - Fork 389
New lsp version breaks local testing of hls in vs-code #2076
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
Comments
what happens if you delete all the caches (ghcide, hie-bios, etc)? |
Removing neither of |
What version of VS Code are you using? Could you try upgrading it? |
The new lsp version adds support for semantic tokens, and I think old versions of VS Code do not stick to the LSP specification in the declaration of semantic tokens support, which probably breaks the parser in the lsp-types package |
I'm running |
I reported this in #2068. VS Code |
I think we can close this as a duplicate of #2068 |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Tool versions found on the $PATH cabal: 3.2.0.0 stack: 2.7.1 ghc: 9.0.1
Which OS do you use:
ArchLinux
Which lsp-client do you use:
Vscode
Contents of
hie.yaml
:Behaviour
My local dev environment is broken, and I've bisected it to #2059 .
The issue: running a locally-built-via-stack
haskell-language-server
in vs-code immediately crashes. The logs from vscode are short and sweet:It works fine when I run
haskell-language-server --debug
directly in the directory.Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:The text was updated successfully, but these errors were encountered: