-
Notifications
You must be signed in to change notification settings - Fork 145
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
configurationDone signature incorrectly says "Void" #721
Comments
This seems to imply all the Do you have the original JSON for this case? The quoted text in the description does not look right (it looks like the toString output in the debugger rather than what came over the wire). |
This is essentially a follow-up to #674 where better, but apparently still incomplete, Void handling was implemented. |
The json message received from vscode-js-debug/dapDebugServer is {"seq":5,"type":"response","request_seq":5,"command":"configurationDone","success":true,"body":{}} |
#675 allows message to be parsed, and allows to keep access to the actual value from the message. The error here happens later, when trying to feed the future with a non-void response; this response is cast to the Future parameter type (Void here), leading to this class cast exception. |
Void type in Java cannot be instantiated, therefore if a type is declared as Void the fromJson should always set that value to null. If you want to have a generic return type that allows non-null and null results, use a type other than Void as the return type. Fixes eclipse-lsp4j#721
Void type in Java cannot be instantiated, therefore if a type is declared as Void the fromJson should always set that value to null. If you want to have a generic return type that allows non-null and null results, use a type other than Void as the return type. Fixes #721
vscode-js-debug sends the following response to configurationDone:
This is legal according to the specification.
However, this cause LSP4J to fail at parsing the message, because LSP4J mandates a
Void
. The exception isThe text was updated successfully, but these errors were encountered: