Visitar URL original
Quick actions in problem window doesn't work · Issue #1284 · microsoft/vscode-java-pack · GitHub
Skip to content

Quick actions in problem window doesn't work  #1284

Description

@yuyully

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

Activity

  1. testforstephen commented on Feb 27, 2024

    @testforstephen
    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
    
  2. github-actions commented on Nov 4, 2025

    @github-actions

    Hi 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:

    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!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions