-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: v0.14.2 crashes with an Error #64267
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
I revert to v0.14.1, which is working fine. |
Hi, very little code changed between gopls@v0.14.1 and v0.14.2 -- we just upgraded the x/telemetry dependency. Could you please help us investigate this failure on your end? Since your error is not revealing, can you connect to a gopls daemon instance? In your terminal:
And then from your editor, start gopls with What do you see in your terminal? Does the gopls instance crash? Is the process busy? |
@raghvenders since we can't reproduce and the error message does not include a stack trace from gopls, we don't have much to go on. Unless you or someone else experiencing a similar issue can help us debug, this will be difficult to figure out. It is of course concerning that v0.14.2 is not working for you. If you could help us investigate, it would be greatly appreciated. Thanks. |
THanks @findleyr. By the way, The above error message that I mentioned was from gopls(server) stack when Go extension for vscode recommends gopls v14.2. After update, I was not able to LSP operations like method navigation or so. Even after I restarted my IDE, I encountered the same error. Hence I downgraded it to v0.14.1 However when I tried to reproduce it now i tried to upgrade it to through Go for vs code , recommendations - v0.14.2 and did install, now I have not encountered the issue. I will keep monitoring it though. Help to track more : By the way , I did half way in your thing, starting gopls server with go run. However I don't know how to start modify gopls client in editor like this - |
@raghvenders thanks so much for testing again! It's possible you may have hit a problem while upgrading. To set the Let us know if you encounter this again. |
gopls version
go env
GOVERSION=devel go1.22-d6ef98b8fa Thu Nov 16 05:53:55 2023 +0000
GOHOSTARCH=amd64
GOHOSTOS=windows
What did you do?
go install golang.org/x/tools/gopls@latest based on IDE extensions recommendation
What did you expect to see?
Gopls in a working condition.
What did you see instead?
[Error - 4:23:41 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:43 PM] Stopping server timed out [Error - 4:23:43 PM] Stopping server failed Error: Stopping the server timed out at c:\Users\R\.vscode\extensions\golang.go-0.40.0\dist\goMain.js:21721:19 [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server.
Editor and settings
No Custom Settings
Logs
The text was updated successfully, but these errors were encountered: