You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? (required: The issue will be closed when not provided)
Open a non-empty go file in nvim. This error occurs every time I open a file. It started happening after I installed (and then removed) the plugins nvim-treesitter, nvim-lspconfig and ray-x/go.nvim. The error occurs even with the plugins removed from the system.
What did you expect to happen?
I expected it to open the file without crashing.
What happened instead?
I got this error
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:21: Error executing lua: /snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:22: BufReadPost Autocommands fo
r "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[21]..script /home/aflynn/.local/share/nvim/plugged/vim-go/ftplugin/go/commands.vim[108]..function go#package#InGOPATH, line
15: Vim(let):E684: list index out of range: 0
stack traceback:
[C]: in function 'nvim_cmd'
/snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:22: in function </snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
/snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:21: in function </snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
/snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:21: in function </snap/nvim/2809/usr/share/nvim/runtime/filetype.lua:10>
I'm not sure what's going on here, but it something to do with the output of go list. It may be related to using snap. I've seen others have problems with snap for some reason. What does :!go list output when run from within vim after you get the error you documented above?
What did you do? (required: The issue will be closed when not provided)
Open a non-empty go file in nvim. This error occurs every time I open a file. It started happening after I installed (and then removed) the plugins
nvim-treesitter
,nvim-lspconfig
andray-x/go.nvim
. The error occurs even with the plugins removed from the system.What did you expect to happen?
I expected it to open the file without crashing.
What happened instead?
I got this error
Configuration (MUST fill this out):
vim-go version:
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):Installed as a snap
Go version (
go version
):go1.18.10 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: