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
gopls is not working due to invalid channel id or vim-go: no file for file #2709
Comments
Do you get this when |
Hi @bhcleek Thanks for looking this up. I did
|
Ok. To solve the problem with sameids, I'll need a some code to use that replicates the problem. For the second error, does it literally have $GOPATH in the path, or did you just provide that to simplify the path for reporting purposes? |
For the first case, I was on this repo, For the second issue, it does have the literal in the error message, I simplified it when reporting. |
I think we can figure both of these out, but I'll need to know how to duplicate this with more specificity; I've clone github.com/IBM/multicloud-operators-subscription and do not see any problems with sameids or jumping to definitions. |
now I'm downgrading to gopls 0.2.2, everything this fine. Whenever I update to gopls 0.3.1, I will have the issues. That's the only difference between working and non-working cases for me. If you need more debug info, please let me know. |
Yes, I need to know the cursor locations when you see sameids and jumping to definition fail. |
it's odd, now I'm getting a different error message, when I try to update to gopls v0.3.1. Error message: gopls version:
cursor location is on hubclient, err := client.New(hubconfig, client.Options{}) cursor location is at if nssub.GetDefaultSubscriber() == nil { |
Can you share the output of |
For reporting, I masked my home direct to gopls version:
Error msg:
Cursor location is at the path := make([][]int, 0)
if root == nil {
return path
} output of gopls trace:
whole sample code:
|
Plus my work directory is:
|
Thanks for sharing this information! It looks like you passed a directory into |
You are right, I was doing it on the whole directory, my bad. Run:
|
Thanks for sharing this. It looks like |
Can you please let me know how to do that? |
I believe that, on a different issue, @bhcleek said it could be done by executing |
When copying from the log to Github, I'm getting
|
@stamblerre the web interface is available to users by runnning |
Thanks for sharing the logs. I wonder if this is related to the $ git clone https://go.googlesource.com/tools
$ cd tools
$ git fetch "https://go.googlesource.com/tools" refs/changes/30/219130/1 && git cherry-pick FETCH_HEAD
$ cd gopls
$ go install You will then have a version of |
@stamblerre thanks for the patch. Here's what I get after apply it. Error message:
Output from
Output from
|
FYI: I don't have this issue when I'm on
|
We just released |
@stamblerre thanks for the follow-up, Unfortunately, it's still not working for me on v0.3.2. here's what get from trace command, on
For your comparison, here's the trace I got on
|
It looks like you get a "no identifier found" error in both cases - which symbol are you trying to go to the definition of? Earlier in the thread, it seemed like you were going to the definition of the |
thanks for the follow-up. I was trying to get a definition on I followed up your idea that these might be caused by the |
I am able to get the definition of |
Thanks for letting me know. I was able to reproduce this - filed golang/go#37231 so we'll fix this in the next version of |
thanks for fixing it. |
I'm going to close this since the solution is with gopls, has already landed, and is only pending release. |
golang/go#33030 (comment) v0.4.0 is finally here |
What did you do? (required: The issue will be closed when not provided)
I recently updated
gopls
to v0.3.1 from 0.2.2 then I'm keeping getsometimes, I will get the following when trying to go to definition
plus, I can't go to definition.
What did you expect to happen?
What happened instead?
Configuration (MUST fill this out):
vim-go version:
['vim-go'].commit = 'd698de4'
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
Vim version (first three lines from
:version
):NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Go version (
go version
):go version go1.13.6 darwin/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: