-
-
Notifications
You must be signed in to change notification settings - Fork 389
Error: "Connection got disposed" on eval #2363
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
Hi, thanks for reporting the issue. As it is related with the lsp server, will move it to the haskell-language-server. |
@jneira will do. |
@jneira here is the debug log.
|
is actually a parse error because Fwiw, I can't reproduce using the nixos flake dev shell, ghc 8.10.7, hls commit 1b69975 |
I met same issue in MacOS Big Sur (11.6) and using homebrew built haskell-language-server ang GHC (8.10.7) I noticed
haskell-language-server/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs Lines 523 to 525 in e1949dd
haskell-language-server/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Code.hs Lines 90 to 93 in e1949dd
declaration case call haskell-language-server/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs Lines 513 to 516 in e1949dd
but @jneira hope it could help `haskell-language-server-8.10.7 --debug` output$haskell-language-server-8.10.7 --debug . haskell-language-server version: 1.5.1.0 (GHC: 8.10.7) (PATH: /usr/local/Cellar/haskell-language-server/1.5.1/bin/haskell-language-server-8.10.7) ghcide setup tester in /Users/fts/playground/hot-take-compose-regex. Report bugs at https://github.com/haskell/haskell-language-server/issuesStep 1/4: Finding files to test in /Users/fts/playground/hot-take-compose-regex Step 2/4: Looking for hie.yaml files that control setup Step 3/4: Initializing the IDE Step 4/4: Type checking the files Completed (1 file worked, 0 files failed) |
may related to #2000 |
Yeah I do think it's related to linking because it seems to be Mac specific and the eval plugin depends on how libraries are linked. |
I've been having the same issue. I started using HLS in vscode last summer. Everything worked fine until a week ago or so. Since then, evaluating expressions results in the "Connection got disposed." message most of the time. After trying several times, I get "The Haskell server crashed 5 times in the last 3 minutes. The server will not be restarted.". The strange thing is that it still works some of the time, maybe 1 in 20 tries. Maybe there is some race condition? Here is the log recording one such event (with "Haskell > Trace :Client" set to "debug"): hls.log Relevant section:
I started vscode at 00:55:38 and clicked on the evaluation code lens at 00:56:02. It looks like the actual evaluation executes successfully, but then HLS exits with code -11 and vscode tries to access the dead connection? I'm not entirely sure what's happening here. |
versions
Haskell extension v1.7.1. GHCi, version 8.10.7 Vscode:How to reproduce
Assume the following code. Opened in Vscode as
test.hs
.Evaluate...
on top of>>>add 1 2
.REDCROSS_IN_CIRCLE Connection got disposed
What I tried.
>Haskell: Restart Haskell LSP Server
No fix as of now.
The text was updated successfully, but these errors were encountered: