-
Notifications
You must be signed in to change notification settings - Fork 764
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
gopls: connection to server is erroring.Shuting down server. #3027
Comments
it works well before, this issue occurs just from the Monday of this weak. |
Can you please share the output of |
golang.org/x/tools/gopls v0.14.1 |
Thanks @jiangxiaPeter Are you still experiencing the issue?
|
log entries in the screenshot is all that in the gopls output channel.
Build infogolang.org/x/tools/gopls v0.14.1 |
The issue continues to exist now |
Thanks. The error logs seem to indicate the LSP client couldn't establish connection at all. I think a couple of possibilities:
Daemon mode setup gopls -listen=:37374 -logfile=auto -debug=:0 -vv The following VS Code setting will make the extension starts gopls in client mode. "go.languageServerFlags": ["-remote=:37374", "-logfile=auto", "-rpc.trace"] See if the daemon receives connection, or crashes. We've also seen cases where remote host environment is a problem (e.g. #2986 even though this specific case seems to cause to crash the entire extension host :-(). So, would be also helpful to check if the same vscode/vscode-go/gopls/go causes the same issue on local dev setup. |
I am trying by go get command
Nothing seems wrong, log entries on the terminal is:
It works well on my local mac machine with gopls v0.14.1 |
To install But, given that the client gopls (process 19420) claims it sent messages to the LSP client (vscode), I am more leaning towards the culprit is not in gopls. If you enable the client side logging Before reaching out to the vscode team for help, you may try a couple of other things
|
No more log found after client side logging enabled. Restarting the remote vscode server and Restarting the remote machine does not work too. |
There will be some cost for me to migrate the remote machine, I will try later. |
Same problem, anything new? |
Type: Bug
[Error - 6:12:17 PM] Client gopls: connection to server is erroring. Shutting down server.
[Error - 6:12:17 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at GoLanguageClient.shutdown (/root/.vscode-server/extensions/golang.go-0.39.1/dist/goMain.js:15406:17)
at GoLanguageClient.stop (/root/.vscode-server/extensions/golang.go-0.39.1/dist/goMain.js:15383:21)
at GoLanguageClient.stop (/root/.vscode-server/extensions/golang.go-0.39.1/dist/goMain.js:17843:22)
at GoLanguageClient.handleConnectionError (/root/.vscode-server/extensions/golang.go-0.39.1/dist/goMain.js:15624:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Extension version: 0.39.1
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:46:55.789Z)
OS version: Darwin x64 22.6.0
Modes:
Remote OS version: Linux x64 3.10.107-1-tlinux2_kvm_guest-0049
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: