-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: could not import local package #46584
Comments
Hi, I am assuming that the
However, you report that your build succeeds from the command line. Could you share:
Thanks |
My issue description is wrong,i have updated it. 1.I run "go build cmd/package1/main.go" in "MyProject" directory. The project is indeed under GOPATH/src |
I just tried to reproduce it with a new project, I failed. |
1.project can be built successfully,it's work.
2.vscode(or gopls) show errors 'could not import **** package'
3.Goland will not have this problem, But I want to use vscode remote
The project structure is as follows:
Assume modName is MyProject
What should I change to let the error go away?
The text was updated successfully, but these errors were encountered: