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

Jakarta quick-fix fails due to getData() is null #336

Open
turkeylurkey opened this issue Jun 25, 2024 · 0 comments
Open

Jakarta quick-fix fails due to getData() is null #336

turkeylurkey opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@turkeylurkey
Copy link
Member

turkeylurkey commented Jun 25, 2024

Certain quick fixes related to Jakarta do not appear with the diagnostic in the editor because of an exception.

You can see the exception in the Output tab when you select "Language Support for Java."

[Error - 12:57:13 PM] Request textDocument/codeAction failed.
  Message: Request jakarta/java/codeaction failed with message: java.lang.NullPointerException: Cannot invoke "Object.toString()" because the return value of "org.eclipse.lsp4j.Diagnostic.getData()" is null
  Code: -32603

An example is the quick fix reading "The @AssertTrue annotation can only be used on boolean and Boolean type fields."

More details are available in the lsp4jakarta repository.

@turkeylurkey turkeylurkey added the bug Something isn't working label Jun 25, 2024
@turkeylurkey turkeylurkey changed the title Quick-fix fails due to getData() is null Jakarta quick-fix fails due to getData() is null Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant