You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran a go generate command, which generates Go files. In this case, the generated code previously defined a struct with a field NeighborhoodUIDs; the generate run renamed this to NeighborhoodUids.
In VSCode, I now wanted to edit other files referencing this struct in order to update all the calling code that uses this field.
Gopls insists that NeighborhoodUids is incorrect and that the old name is correct.
This implies that Gopls is not correctly monitoring the files on disk. It's only taking into account the changes I make through the editor.
What did you expect to see?
Gopls should always reflect the current state of files on disk, not just edits made in the editor that uses Gopls.
What version of Go are you using (
go version
)?Using revision
8aaa148
oftools
.Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go generate
command, which generates Go files. In this case, the generated code previously defined a struct with a fieldNeighborhoodUIDs
; the generate run renamed this toNeighborhoodUids
.NeighborhoodUids
is incorrect and that the old name is correct.This implies that Gopls is not correctly monitoring the files on disk. It's only taking into account the changes I make through the editor.
What did you expect to see?
Gopls should always reflect the current state of files on disk, not just edits made in the editor that uses Gopls.
What did you see instead?
See above.
gopls.log.zip
The text was updated successfully, but these errors were encountered: