x/tools/gopls: go modules in subfolders of VSCode folder are not recognized #37838
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.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Unknown, as a golang 1.14 package is not available for Ubuntu Xenial.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am using a Go project folder structure like this:
As you can see there is a
go.mod
file in the wsl-ssh-pageant project.In Visual Studio Code I am opening the folder
go-projects
instead of the individual subfolders for reach project in order to quickly jump between them. You could think of it as my mono-repo-like approach with VSCode even though the individual projects are individual repos.What did you expect to see?
I expected gopls to recognize the
go.mod
file in the wsl-ssh-pageant project.What did you see instead?
Instead I am getting this error message:
The text was updated successfully, but these errors were encountered: