x/tools/gopls: "renaming [method] is not possible because [package] has errors" #41870
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
help wanted
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version are you using?
with GNU Emacs 27.1 and eglot 20200830.1254.
Does this issue reproduce with the latest release?
Yes
What did you do?
Edit
$GOROOT/src/cmd/go/modget/get.go
to the following, which I believe is parseable but certainly includes many errors (including type errors).Move the editor point to the method
fixVersion
at 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: