-
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
ClassCastException codeAction failure in VSCode #455
Comments
Need to determine how pervasive this issue is. |
Was seeing this behaviour before the changes in #453
|
Interestingly, when surrounding the LSP4Jakarta request in VS Code with a try/catch, the results change up a bit.
The same stacktrace from the above comment shows up in the Java language support output.
|
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. |
I was able to recreate this issue with the 23.0.6-SNAPSHOT on Mac. |
@dshimo can you record how you were able to recreate the exception? Were there multiple ways it occurred or just one? |
I was able to consistently recreate it with InjectAndDisposesObservesObservesAsync.java and all it took was the simple highlight as suggested. The issue seems to occur when highlighting with the If you resolve the diagnostic by removing the |
ClassCastException
Continued from #454
When highlighting text in a Jakarta file, this sometimes appears. Unsure of specifics, but seems to be when a method has an annotation, and highlighting the entire method and annotation at the same time.
To reproduce:
In InjectAndDisposesObservesObservesAsync.java, highlight any method starting from the
@Inject
all the way to the method closing bracket}
@
, error shows when highlighting down to the closing bracket}
@
but beforeInject
, error shows when highlight reaches the method name (with the diagnostic).The text was updated successfully, but these errors were encountered: