I'm using neovim with coc.nvim and have been using vim-go and coc-go, and everything was working fine.
I have the habit of updating everything every couple of days, and I do that using the following commands:
:PlugUpgrade
:PlugUpdate
:GoUpdateBinaries
:CocUpdateSync
Recently after I did the update, the auto-completion for go
files has stopped working.
Things I tried:
- I thought there might be a conflict with
coc-go
, so I tried uninstalling it, but it didn't solve the issue - On my other computer, I opened a
go
file before and after running the update (without changing anything else), and auto-completion stopped working after the update - I tried cleaning up
mod
andbin
directories in myGOPATH
, and reinstalling everything, but still, it's not working.
When I open a go
file, I see the message vim-go: initialized gopls
, but I also see the following message
[coc.nvim]: Unhandled rejection: TypeError: Cannot read property 'workspaceFolders' of undefined
I thought this message is responsible for things being broken, but that's not the case: after digging a bit on the message, that message is coming from coc-go
, but even when I uninstall coc-go
, my auto-completion is still not working