/ go Public
x/tools/gopls: "renaming [method] is not possible because [package] has errors" #41870
Issues related to the Go language server, gopls.
Issues related to refactoring tools
This label describes issues relating to any tools in the x/tools repository.
What version are you using?
with GNU Emacs 27.1 and eglot 20200830.1254.
Does this issue reproduce with the latest release?
What did you do?
$GOROOT/src/cmd/go/modget/get.goto the following, which I believe is parseable but certainly includes many errors (including type errors).
Move the editor point to the method
fixVersionat line 1078.
(Note that references to that method elsewhere in the file are highlighted, so cross-references seem to be working more-or-less correctly.)
M-x eglot-rename, and give a new name for the method.
What did you expect to see?
Since references to the named method resolve successfully, those references should be renamed despite any other errors in the file.
What did you see instead?
The text was updated successfully, but these errors were encountered: