-
Notifications
You must be signed in to change notification settings - Fork 446
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
Error on hover: lllegal argument, contents must be defined #214
Comments
You created the project before or after opening vscode? |
I created it while it was open, but in the meantime also started VSCode again on the project. |
I think it's a bug on the Java language server side. If a location doesn't have any hover to show, send 'null' as result, not a hover without contents. |
Ok I can reproduce the issue. I think we send a non null Hover because lsp4j would crap out otherwise, but I need to check |
@aeschli it's actually VS Code that doesn't like null results:
|
Yes, it can be discussed where the bug is. From how I understand the spec, 'contents' is a required field for hover. |
#214 (comment) |
Yes it was when I sent a null Hover result instead of an Hover result with null content (your initial report) |
Fixes redhat-developer/vscode-java#214 Signed-off-by: Fred Bricon <[email protected]>
Fixes redhat-developer/vscode-java#214 Signed-off-by: Fred Bricon <[email protected]>
v0.4.0
boolean
The problem seems to be that the hover object sent across the line doesn't contain a 'contents' field.
The text was updated successfully, but these errors were encountered: