-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"Invalid channel id" error in go#lsp#DidChange (again?) #3029
Comments
Are both the files you opened in the same module? |
No, they were not. go-ethereum/params vs go-ethereum/cmd/geth I think
…On Sun, 27 Sep 2020 at 17:25, Billie Cleek ***@***.***> wrote:
Are both the files you opened in the same module?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3029 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6TXSMR2N3ODSYO6ZFSWWDSH5RO7ANCNFSM4R3QZZYA>
.
|
Currently, you'll need to use I'm marking this as a duplicate and closing, because the behavior you're describing was already reported in #3026. Feel free to let me know if #3028 works for you either on that PR or in #3026. |
Ah beg your pardon. Both files are in the same go module (go-ethereum).
There is a symlink in play though due to how go-etherum (quorums fork)
build system deals with GOPATH. Maybe the symlink causes gopls to *think*
there are two modules ?
…On Sun, 27 Sep 2020 at 21:42, Billie Cleek ***@***.***> wrote:
Currently, you'll need to use :GoAddWorkspace to add the second module's
root directory. However, can you try #3028
<#3028> to see if it works for you
without having to use :GoAddWorkspace?
I'm marking this as a duplicate and closing, because the behavior you're
describing was already reported in #3026
<#3026>. Feel free to let me know
if #3028 <#3028> works for you either
on that PR or in #3026 <#3026>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3029 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6TXSNSCCNJGPLB6ILGF3TSH6PRXANCNFSM4R3QZZYA>
.
|
I see. Symlinks generally will cause some problems with vim-go and Go generally for several reasons. What does your directory structure look like and where in that directory structure are the symlinks, especially as it relates to the files that you're opening? If you're trying to do development with Go using a fork of some package in GOPATH mode, you can place your working tree of the fork at the expected location according to the desired import path. You may find using multiple remotes useful. |
#2638 # What did you do? (required: The issue will be closed when not provided)
GOPATH project, (GO111MODULES not set)
Opened a go file. Opened a second file. Go the error in the picture below. Susequently the error pops up every few seconds making nvim unusable.
I think this may simply be a recurrence of #2467 for v0.5.0 of gopls ?
Reverting to gopls v0.4.1 resolved the issue
What did you expect to happen?
What happened instead?
Configuration (MUST fill this out):
vim-go version:
v1.24 (dev) commit 0a97926 (Mon Sep 21 13:46:22 2020 -0700
vimrc
you used to reproduce:Rather than provide a vimrc, I reverted to gopls v0.4.1 and confirmed the problem was resolved.
Vim version (first three lines from
:version
):NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Go version (
go version
):go version go1.14.9 darwin/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: