Repository navigation
Quick actions in problem window doesn't work #1284
Copy link
Copy link
Open
Labels
Description
Activity
testforstephen commented
on Feb 27, 2024 ContributorMore actionsSEVERE: Internal error: java.lang.IllegalStateException: Invalid codeAction proposal java.util.concurrent.CompletionException: java.lang.IllegalStateException: Invalid codeAction proposal at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source) at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: Invalid codeAction proposal at org.eclipse.jdt.ls.core.internal.handlers.CodeActionResolveHandler.resolve(CodeActionResolveHandler.java:44) at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$15(JDTLanguageServer.java:793) at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87) ... 3 moreHi Cindy Liu (@yuyully), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Suggestions to troubleshoot and work around the missing quick actions:
- Verify editor and Java code‐action settings:
- "editor.lightbulb.enabled": true
- "java.errors.showInProblemsView": true
- Confirm the Java Language Server is running without errors:
- View → Output → select “Java Language Server” → look for startup errors
- Trigger the import/code‐action via keyboard (e.g. Ctrl+. / ⌥⏎) while the editor cursor is on the error
- Update VS Code and the Java extensions to the latest versions (1.27.0 → 1.x)
Related issue worth checking:
- No quick actions available when targeting class name in ctor invocation (similar missing code‐action behavior)
No quick actions available when targetting class name in ctor invocation redhat-developer/vscode-java#2531
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
- Verify editor and Java code‐action settings:
Environment:
Step to Reproduce:
Expected Behavior:
Quick actions in problem should work well.
Actual Behavior:
