Closed sbinet closed 1 year ago
hum... compiling the same gopls
version but with golang/go@c19c4c566c (ie: Go1.21.0
) works.
and it would seem that the "invalid channel id" error comes up when compiling gopls
with golang/go@5fa4aac0cec637fd9415fb260e3fbc2975377e00
can people reproduce it ?
The most common reason for the Invalid channel id
error is because gopls
has crashed. Given that you can duplicate this with a specific revision of the Go source code, I recommend that you file an issue in github.com/golang/go
about it.
Would you have a set of shell commands that'd replicate the set of vim operations I've sketched above ?
Ie : what does vim-go send to gopls ?
You can add let g:go_debug=['lsp']
to see the logs of requests and responses to gopls
from vim-go. That may be enough for the gopls
team to understand what's going on. Alternatively, they may ask you to use the -logfile
option. You can use g:go_gopls_options
(see :help g:go_gopls_options
) to set it.
However, the very simple reproduction case you've described may be all they need.
it's a known issue: https://github.com/golang/go/issues/62191
What did you do? (required: The issue will be closed when not provided)
when saving or modifying the file one gets the dreaded:
Configuration (MUST fill this out):
vim-go version:
ec8f05bb
vimrc
you used to reproduce:vimrc
```vim set nocompatible filetype off " set the runtime path to include Vundle and initialize it set rtp+=~/.vim/bundle/vundle/ call vundle#begin() " let Vundle manage Vundle. Plugin 'VundleVim/Vundle.vim' Plugin 'fatih/vim-go' call vundle#end() filetype plugin indent on syntax on "" support for Go "" au FileType go setlocal formatoptions=cqrot1 ai nofoldenable ```Vim version (first three lines from
:version
):NVIM v0.9.1 Build type: Release LuaJIT 2.1.1692616192
Go version (
go version
):go version devel go1.22-9aaf5234bf Thu Aug 31 00:56:17 2023 +0000 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection