-
-
Notifications
You must be signed in to change notification settings - Fork 370
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 crashes immediately in vscode #2117
Comments
Probably a duplicate of #2087 |
Hmm, I've built hls from rev 790afc6 which was head in master yesterday. What strikes me here is that I don't get any useful debug output at all, the log is almost empty. Something else to note is that I'm building hls with dynamic linking, see the linked "build configuration" above for more details. |
#2087 was fixed in the Haskell vscode extension, are you on the latest version? |
@pepeiborra I'm on 790afc6 which was the latest version until 5 minutes ago. |
I am talking about the vscode extension |
|
I was on |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 1.3.0.0 (GHC: 9.0.1) (PATH: /nix/store/q3ydvvxiwj2m6c1y90n8mcqbx60ih0vp-haskell-language-server-exe-haskell-language-server-1.3.0.0/bin/haskell-language-server) Tool versions found on the $PATH cabal: 3.4.0.0 stack: 2.7.3 ghc: 9.0.1
Which OS do you use:
NixOS
Which lsp-client do you use:
vscode
Describe your project (alternative: link to the project):
https://github.com/hasktorch/hasktorch/tree/flakify-nix-derivations
Contents of
hie.yaml
:https://github.com/hasktorch/hasktorch/blob/flakify-nix-derivations/hie.yaml
Build configuration of HLS:
https://github.com/hasktorch/hasktorch/blob/8697384718783151dd909809f1f79aaa3d7f1e09/flake.nix#L61-L194
Steps to reproduce
$ nix --version nix (Nix) 2.4pre20210802_47e96bb $ nix develop $ code .
Expected behaviour
HLS should not crash in vscode.
Actual behaviour
HLS immediately crashes five times in vscode.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Too much to post here. HLS run from the command line compiles the project just fine and exits normally.
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: