-
-
Notifications
You must be signed in to change notification settings - Fork 390
Request textDocument/codeAction failed: "Connection to server got closed." #376
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
Comments
Hi! could you attach the full log of the vscode session? It seems the error is thrown just after creating a ghc session, stack build/repl works for the files you are opening in the editor? |
That said, the server should not crash without. at least, sending a message to the client |
At a first glance, it reminds me of #366, because of the line
Can you tell us something about the project? Is it a stack project, and could explain what you did to trigger this error? (e.g. open |
Agreed, this looks like a cradle issue |
Sure:
Yeah,
Yeah, created using
I opened Let me know if you need more information. |
Please post the output of running the following command from the project root directory.
I'm seeing the same error in my VSCode log. Running the above command ends with a segfault for me. |
I'm able to reproduce this behaviour as follows.
Navigate to e.g. Executing HLS with
|
@cebaa could I get you to try the above, in order to determine whether we're experiencing the same issue? |
Sorry for a delay, here's the output:
|
I'm having the same issue, can be easily reproduced by just creating new Yesod project using |
In case that it might help as a hint... I am now experiencing this issue, after I started using It is back to normal when I avoid using it. |
I got the following error also (not "got closed", but "got disposed") here is the log:
@vst I try to remove |
EDIT: I later narrowed this down to a TH splice. Looks like issue https://github.com/haskell/ghcide/issues/444. Getting the same issue. When I run the downloaded
My project was initialized with |
Update: I narrowed down my problem to a Template Haskell splice, so it looks like https://github.com/haskell/ghcide/issues/444 instead of this. |
* Trailing whitespace makes for unnecessary diffs * Add trailing newline
The ghcide issue was moved here as #800. |
Getting this when starting a language server (this is the last one after which it gives up retrying):
HLS
GHC
Stack
I'm not sure what other information I can collect to help troubleshooting this, let me know.
The text was updated successfully, but these errors were encountered: