Closed villevaltonen closed 4 years ago
Does your /home/go/bin/gopls
works? Try /home/go/bin/gopls --help
to make sure gopls can really work.
We don't have time to test your vimrc branch, minimal vimrc required for us to test out the issue.
I'm not able to reproduce your issue.
Result from CocInfo
versions
vim version: VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 06 2019 17:31:41) node version: v10.16.3 coc.nvim version: 0.0.74-d83536aa4e term: dumb platform: linux
Describe the bug
When using "gopls" as a command for in LSP configs for Golang in Vim8, it fails to start the language server due error described in the screenshot below. I'm using the default plugin manager of Vim.
Go-version: go1.13.5 linux/amd64 gopls-version: @latest (9th Dec 2019)
Reproduce the bug
{ "languageserver": { "golang": { "command": "/home/go/bin/gopls", "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"], "filetypes": ["go"] } } }
There is also a guide for installing vim-go and coc.nvim, but I used the default vimrc-settings for coc.nvim from your docs. My full Vim-setup is available from my repository called dotfiles (branch coc-bug). There are complete .vimrc and bin/vim-setup.sh for installing plugins for default plugin manager).
Screenshots