-
Notifications
You must be signed in to change notification settings - Fork 51
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
NPE on ASTNode.getParent() codeAction failure in VSCode after getData() is null #454
Comments
Let us break each exception into their own issue. |
Thanks for breaking out the issues, @turkeylurkey! |
Need to determine how pervasive this issue is. |
In my testing with VSCode using the latest driver dated May 29th, liberty-dev-vscode-ext-23.0.6-SNAPSHOT.vsix, I was not able to recreate this exception. |
Is this stop ship? |
With @dshimo's help, I was also able to reproduce in my env. |
Adding @resource causes a diagnostic which uses ScopeDeclarationQuickFix. This quick fix uses diagnostic.getData() which returns null and causes the NPE. Caused by microsoft/vscode#181166 |
Unsure if this is related to the new cursor context code that was merged in #453.
Both of these shift focus to the Output window when the error occurs.
NPE on ASTNode.getParent()
When moving the cursor (clicking or arrow keys) to some highlighted diagnostics in a Jakarta project, this error shows up:
Some examples to reproduce:
In ManagedBeanConstructor.java, move cursor to the diagnostic on the constructor definition.
In ManagedBean.java, move cursor to the diagnostic on the class name, or the
a
fieldIn InjectAndDisposesObservesObservesAsync.java, move cursor to any diagnostic on the method names.
ClassCastException moved to #455
The text was updated successfully, but these errors were encountered: