-
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: invalid build configuration with symlinked GOPATH #38558
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
It looks like you are working outside of your GOPATH and outside of a module? Is this intentional, or do you have a |
I am working under GOPATH="/repo/mattl/gitRepos/vonu-mgmt" folder. but the top folder /repo is actual a soft link point to /home/repo ➜ vonu-mgmt git:(master) ✗ pwd |
so this is an issue related to soft link directory? how to solve an issue like this? I have to use soft links due to some other limits |
Thanks for clarifying. I would guess that this is due to the link, but it's a bug that we should fix on our end. Thanks for the report! We'll aim to get a fix in for |
@stamblerre ok, thank you for your quick support |
Change https://golang.org/cl/266200 mentions this issue: |
@jayconrod @bcmills @matloob: To support this, we are considering copying the |
Not sure if I have enough context, but I think |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
golang.org/x/tools/[email protected] h1:G4+YP9kaV4dJb79J5MobyApxX493Qa6VoiTceUmxqik=
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use nvim with coc-vim, when I first edit the go file that contain main package then go to definition works well, let's say I jumped into a function in another go file receiver.go. Thing got wired when I directly open receiver.go(or another files) without open main file first and jump from main file, go definition errors on every function even the func is defined inside receiver.go
gopls -rpc.trace -v check src/comm/receiver/restapi.go
Outputgopls -rpc.trace level log
OutputWhat did you expect to see?
go to definition successful
What did you see instead?
no highlight: getting file for Highlight: no PackageHandles
I use another linux server with same go and gopls version, not reproduce this issue. This drive me crazy. I do not know how to continue debugging this. PLS help
The text was updated successfully, but these errors were encountered: