Skip to content
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

x/tools/gopls: #54442

Closed
zvisavvy opened this issue Aug 13, 2022 · 3 comments
Closed

x/tools/gopls: #54442

zvisavvy opened this issue Aug 13, 2022 · 3 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@zvisavvy
Copy link

gopls version

golang.org/x/tools/gopls v0.9.3
golang.org/x/tools/gopls@v0.9.3 h1:wfh4cfJAKwOG49sCE4ldafYeD5rlejE/gJQ7JAR5yX0=

go env

What did you do?

I tries to invoke a go language specific function is vscode such as "Go To Definition" for a function.77

Ever since version 0.9.2 was released (and 0.9.3 as well). I am not able to use any go language specific functions in vscode. If I try to "Go To Definition" in a go file, I see the following error in the Developer tools Window:

What did you expect to see?

I expected VSCODE to position itself on source code for the function.

What did you see instead?

VSCODE displays an endless progress bar and display the following error message in developer tools window:

workbench.desktop.main.js:2279 Error: Header must provide a Content-Length property.
at StreamMessageReader.onData

Editor and settings

I have seen this behaviour it the two latest version 0.9.2 and 0.9.3 when I go back to version 0.9.1 everything returns to normal function.

Logs

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Aug 13, 2022
@gopherbot gopherbot added this to the Unreleased milestone Aug 13, 2022
@findleyr
Copy link
Contributor

Thank you for the issue.

This is golang/vscode-go#2406: a new vet analyzer contains a print statement that breaks jsonrpc2 communication in gopls.

It will be fixed on Monday. We only discovered this midday on Friday, and do not release over the weekend.

Sorry for the breakage.

@zvisavvy
Copy link
Author

"Sorry for the breakage"

Thanks for everything that does work - It's great.

@findleyr
Copy link
Contributor

❤️ thanks.

BTW, if you hit this bug, your project contains a time format string containing "2006-02-01" instead of "2006-01-02", which is probably incorrect (c.f. #48801)

@golang golang locked and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants