x/tools/gopls: IDE shows undeclared name on every symbols when accessing from other files #34951
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
When you opened the VSCode window, did you open it from the directory that contains the |
@stamblerre Yes, I do. I have just solved my problem. I tried run I am so sorry for posting this stupid question. I should have run the test. |
Not a problem! Thank you for following up! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputSetting from
settings.json
in VS CodeOut put from
gopls version
Out put from
gopls -rpc.trace -v check /path/to/file.go
gopls logs
What did you do?
I am using project structure similar to this
and I access symbols from others file.
What did you expect to see?
I can access symbols from others file and VS Code does not show
undeclared name
.What did you see instead?
VS Code complains on every symbols from others file
undeclared name
.Additional Infomation
The text was updated successfully, but these errors were encountered: