Broken multi go.mod workspace #2243
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
Run
go version
to get version of Go from the VS Code integrated terminal.go version go1.18 linux/amd64
Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Check your installed extensions to get the version of the VS Code Go extension
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Describe the bug
Warnings in every file complaining about not being able to find imports, warnings on the field saying they are undefined. Editor is pretty much unusable.
We have a project with two go.mod files, we have a a folder called
api
and a folder calledintegration/tests
in the project folder. Both of these have a go.mod in them. For about 10 months of so this setup was working perfectly with theexperimentalWorkspaceModule
option. About a month or two ago these errors started occuring. I was hoping it was just a temporary error so I switched to using GoLand for a month or two hoping it would get fixed, but it still hasn't been fixed so I'm taking the time to open a ticket now.I have tried clearing the cache, modcache, testcache, does not help.
Steps to reproduce the behavior:
I can't share out proprietary codehbase of course, so I recreated a dummy repo here with the same structure as our proprietary repo. I'm not able to replicate the error in the dummy repo at the moment. So it might not be that useful sadly.
Screenshots or recordings
The text was updated successfully, but these errors were encountered: