x/tools/gopls: undeclared name when accessing symbols from other files #35337
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.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. I installed the latest stable vscode build and golang.
What operating system and processor architecture are you using (
go env
)?go env
OutputThe output of
gopls version
andgopls -rpc.trace -v check /path/to/file.go
?What did you do?
1.create a folder called "newproject" and use vscode to open it
2.create main.go
3.create f.go
What did you expect to see?
No error should show up
What did you see instead?
No error occurs when running the following command
it will output 'Hello'
but in the vscode editor, it shows "undeclared name: f"
The text was updated successfully, but these errors were encountered: