Skip to content
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

Closed
robinbryce opened this issue Sep 27, 2020 · 5 comments
Closed

"Invalid channel id" error in go#lsp#DidChange (again?) #3029

robinbryce opened this issue Sep 27, 2020 · 5 comments

Comments

@robinbryce
Copy link

robinbryce commented Sep 27, 2020

#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?

Screenshot 2020-09-27 at 12 29 44

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:
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/puk/Library/Caches/go-build"
GOENV="/Users/puk/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/puk/jitsuin/quorum-rororo/build/_workspace"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go@1.14/1.14.9/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go@1.14/1.14.9/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/82/4dgwl1cs603d2h_l_nsj3jf80000gn/T/go-build843329381=/tmp/go-build -gno-record-gcc-switches -fno-common"

gopls version

gopls version Output:
v0.5.0
@bhcleek
Copy link
Collaborator

bhcleek commented Sep 27, 2020

Are both the files you opened in the same module?

@robinbryce
Copy link
Author

robinbryce commented Sep 27, 2020 via email

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 27, 2020

Currently, you'll need to use :GoAddWorkspace to add the second module's root directory. However, can you try #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. Feel free to let me know if #3028 works for you either on that PR or in #3026.

@robinbryce
Copy link
Author

robinbryce commented Sep 28, 2020 via email

@bhcleek bhcleek reopened this Sep 28, 2020
@bhcleek
Copy link
Collaborator

bhcleek commented Sep 28, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants