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

Quick actions in problem window doesn't work #1284

Open
yuyully opened this issue Feb 1, 2024 · 1 comment
Open

Quick actions in problem window doesn't work #1284

yuyully opened this issue Feb 1, 2024 · 1 comment

Comments

@yuyully
Copy link

yuyully commented Feb 1, 2024

Environment:

  • VS Code Version: Github Codespace
  • Extension Version: 1.27.0
  • JDK Type & Version: java 21
  • OS Type & Version: windows

Step to Reproduce:

  1. Clone and open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/eclipse/simple-app
  2. Disable 'PasteAs' in settings > Open a java file and paste 'File f = new File("demo.txt");'
  3. Go to problem window > Click on error message, the line of error will be highlighted > Then click on light blub, all actions here don't work

Expected Behavior:
Quick actions in problem should work well.

Actual Behavior:
image

@testforstephen
Copy link
Contributor

SEVERE: 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 more

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

No branches or pull requests

2 participants