x/tools/gopls: rename fails with "no object found" when the old identifier is missing a declaration #41851
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version are you using?
Does this issue reproduce with the latest release?
Yes
What did you do?
(https://play.golang.org/p/OSPW1IIzNCs)
emacs
withgopls
viaeglot
, start with a program with an existing undeclared identifier used in several places.(For this example,
errNo
.)errno
).M-x eglot-rename
.What did you expect to see?
References to the (now-undeclared) variable at the point should be renamed so that they now refer to the identifier in step (2).
What did you see instead?
gopls
returns ano object found
error.As reported by
M-x eglot-events-buffer
:The text was updated successfully, but these errors were encountered: