Skip to content
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

Void return types need to always be null value #728

Closed
wants to merge 1 commit into from

Conversation

jonahgraham
Copy link
Contributor

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

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
@jonahgraham
Copy link
Contributor Author

@mickaelistria @sebthom I would appreciate your input/review on this PR.

@mickaelistria
Copy link
Contributor

I tried it with vscode-js-debug dapDebugAdapter and it now works (while previously I had to tweak the debug adapter).

@jonahgraham
Copy link
Contributor Author

Thanks for the testing @mickaelistria - this will be included in the 0.21.0 release in a couple of weeks.

I will wait to give @sebthom a chance to review before I merge though.

@sebthom
Copy link
Contributor

sebthom commented May 3, 2023

@jonahgraham could you provide an update site to try like last time? https://download.eclipse.org/lsp4j/builds/jonah/dap_return_void/

@cdietrich
Copy link
Contributor

@eclipse-lsp4j-bot run tests

@cdietrich
Copy link
Contributor

@jonahgraham as we dont build prs at
https://ci.eclipse.org/lsp4j/job/lsp4j-multi-build/
anymore we dont seem to have easily consumable repos

@jonahgraham
Copy link
Contributor Author

We never published PRs to download.eclipse.org as PRs could come from untrusted people. Only branches on this repo get to download.eclipse.org with lsp4j-multi-build/ - I am closing this PR in preference to #729 which should get a download soon.

Longer term we can add saving the artifacts to the github actions so it can be used in this way (PRs welcome on that!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

configurationDone signature incorrectly says "Void"
4 participants