New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: spurious "is not an identifier" error #33467
Comments
These error messages are removed in This error is a result of your editor showing the errors from the hover request to the user, so it might be worth filing that issue. Some editors, like VSCode, choose not show the errors from every request to the user. |
@stamblerre I've included the commit hash in my original post. I am on master. I've just updated to Not sure “just ignore it” is a good strategy, but I will open an issue, if it wasn't already. |
@stamblerre FWIW, I've replaced
with
in |
Oh I'm sorry, I misunderstood - I had assumed that the error was with hover, not with document highlight. In that case, this is definitely an error on the client side. We never return errors from document highlight (see here), they are only ever logged. The client should not show the user logged errors--the LSP specification has a specific |
You are very correct! Disabling logging with let g:lsc_server_commands = {"go": {"command": "gopls serve", "log_level": -1}} fixes the issue! Should I add info about this vim LSC implementation to the Wiki to prevent duplicates? |
I think it might be best to file an issue with |
Done. Thank you thrice: for helping me today, for your GopherCon Russia talk, and for |
😄 And thank you for reporting this issue! |
gopls
built from1d1727260058c6d58ebfdeb982c4657342282355
go
versiongo1.11.12
vim
version8.0
from the Ubuntu 18.04 repovim-lsc
versionad9d2bd0582419e902bc402545da397634202ed0
When browsing through code, I constantly get:
I get this whenever the cursor is not on an identifier. This error also makes the cursor invisible, which is annoying.
I am still not sure, if it's a problem with
vim-lsc
orgopls
. I am ready to provide more information to help diagnose the issue.The text was updated successfully, but these errors were encountered: