Closed 110y closed 3 years ago
This is an issue with gopls. The codeDescription field in the diagnostics should either not be present or contain an valid url in href, but you are getting "codeDescription":{"href":""}
as per your log. I opened https://github.com/golang/go/issues/42314 a few days ago about this and it seems like it got fixed, so I presume that updating gopls
(or using the latest release instead of master) should fix it for you.
This works for you in a previous version of LCN because the codeDescription field was added in version 0.83 of lsp-types, which we updated to after that commit you shared. But the issue is that that specific version of gopls you are running is not protocol compliant, so deserialization breaks on the client.
Thank you so much! I've confirmed it.
Describe the bug
A clear and concise description of what the bug is.
Environment
nvim --version
orvim --version
):NVIM v0.5.0-812-gd17e50879
git rev-parse --short HEAD
):11a18ac
(latestdev
branch)bin/languageclient --version
):languageclient 0.1.160
Go:
gopls
-v0.0.0-20201105220310-78b158585360
(latestmaster
branch)To Reproduce
Steps to reproduce the behavior:
main.go
like below:nvim -u min-vimrc.vim main.go
Current behavior
No diagnostics signs are displayed.
Expected behavior
A diagnostics sign which complaints:
undeclared name: invalidtoken
, should be displayed like below:This screenshot has been taken with
LanguageClient-neovim
version8c779dd
. So I think it should be work as expected at least with the commit.Log