inferGopath gets disabled if a vendored package is using modules #301
Labels
FrozenDueToAge
HelpWanted
Issues that are not prioritized by the maintainers. Help is requested from community contributors.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersgo env
to get the go development environment detailsShare the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug + Steps to reproduce the behavior
I have a project structure like this:
src/a/b/c
and multiple vendored packages insrc/a/b/c/vendor/...
. Some of the vendored packages have a go.mod file. There are no other go.mod files. When I open a filesrc/a/b/c/vendor/d/e.go
, inferGopath gets disabled and effectively everything stops working (code completion, ...).This is the commit that causes the problem: 49c5123
I would expect a less drastic approach in this case:
vscode-go/src/goModules.ts
Line 82 in 38b056d
The text was updated successfully, but these errors were encountered: