x/tools/gopls: server exits if empty method receiver #57729
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
Hi,
I've been trying out
gopls
master for a bit and noticed it crashed when editing a receiver. I could not find any open issue similar to what I saw so here is a summary.gopls version
Current master
1e0dff28f4f920fb7a7f132f775bd68e3b1e1fff
.go env
What did you do?
Renaming the reciever for a method, removing everything between the parens. Like so
What did you expect to see?
n/a
What did you see instead?
Editor and settings
Emacs 28.2 with
lsp-mode
20230107.2052.Gopls flags
-v -remote=auto -remote.logfile=/home/viktor/gopls.log
Logs
Enabling logging gives:
Running
go run ./gopls/main.go check tmp.go
on a file like:reliably fails (on my machines) with
Bisecting points at
61e2d3f4f: gopls/internal/lsp/cache: a new analysis driver
. Before that the check above just printsMaybe something has escalated this from warning to error?
The text was updated successfully, but these errors were encountered: