This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Go: Extract function refactoring errors, can't find imports in $GOPATH/pkg/mod/ #3040
Labels
upstream-gopls
Issue for gopls
What version of Go, VS Code & VS Code Go extension are you using?
Run
go version
to get version of Gogo version go1.13.7 darwin/amd64
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders1.42.0
ae08d5460b5a45169385ff3fd44208f431992451
x64
Check your installed extensions to get the version of the VS Code Go extension
0.13.0
Run
go env GOOS GOARCH
to get the operating system and processor arhcitecture detailsdarwin
amd64
Share the Go related settings you have added/edited
Describe the bug
I'm in a go modules project, but the "Extract Function" refactoring errors when I try to execute it, because it can't find an import that's located in $GOPATH/pkg/mod.
I expected the extract function refactoring to work. Instead I get an error toast.
Steps to reproduce the behavior:
https://github.com/mhansen/nzwirelessmap-fetch
Yeah, the package isn't present in either of those. It's present in
/Users/mark/go/pkg/mod/cloud.google.com/go/[email protected]
instead.The text was updated successfully, but these errors were encountered: