x/tools/gopls: unable to organize imports after go mod tidy / go get #62330
Labels
gopls/metadata
Issues related to metadata loading in gopls
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
go mod init github.com/jroimartin/goplsissue
main.go
with the following contents:And, as expected, the following error is reported by flymake:
go mod tidy
github.com/jroimartin/proxy
What did you expect to see?
After saving the file, the package
github.com/jroimartin/proxy
should be imported again.What did you see instead?
No package is imported.
Editor and settings
Editor: GNU Emacs 28.2
LSP client: eglot 1.15
Relevant
init.el
snippet:Logs
I'm not sure if it is related, but the following error caught my attention:
The text was updated successfully, but these errors were encountered: