-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: not working inside of $GOPATH #33018
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
Comments
#32173 @stamblerre here |
@stamblerre ping |
Can you share a full |
suer @stamblerre FYI gopls version
go version
env
go env
gopls log
vim-ale log
|
@stamblerre I am working under GOPATH |
What is the output of Where is |
Also, are you using build tags? |
In my working dir, under the same package.
yes, I use -ldflages |
from stdout
and stderr got this
|
|
I did not use |
@arthurkiller: If you sync to the latest version of |
gopls version
|
@stamblerre FYI |
Thank you - based on the logs, it seems like we are treating your package as if it were just a single file. For |
@stamblerre Thx a lot. |
I'm not sure how to do it for your particular set up - you may want to check on that repo. We have information for some editors here: https://github.com/golang/go/wiki/gopls#installation. Also, #33107 (comment) may also be helpful to you, as I see a similar error in your logs. |
@arthurkiller: Just to follow up, is this issue resolved for you? |
@stamblerre sorry to say not at all. |
Do you see the same errors when you run |
FYI @stamblerre
|
And you can get the code from my repo.
|
@arthurkiller: I believe this quote from #33018 (comment) should explain your problem. Can you try setting |
@stamblerre yes and yes. I have setting |
Indeed we do need to fix the behavior. #33462 will track this, and you can follow along for updates there. Thanks for bearing with me while we diagnosed this issue! |
LOL you too, thx for your patience |
gopls did not recognize the correct path of import file. and gopls can not go to definenation in side the goroot.
I install go use the official install package from golang.org for osx.
Problems:
can not recognize fields
can not go to define inside go root code
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
Outputenv
OutputWhat did you do?
GOMODULE111=off
when build gopls and use goplsThe text was updated successfully, but these errors were encountered: