redhat-developer / redhat-developer/vscode-java

Shortcut: command java.actions does not work

Open
#1,012 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

I'm trying use shortcuts to generate java code, but java.action isn't working

Environment
  • Operating System: elementary OS 5.0 Juno (Ubunto 18.04.2 LTS)
  • JDK version: openjdk 11.0.3
  • Visual Studio Code version: 1.36.1; 2213894ea0415ee8c85c5eea0d0ff81ecc191529; x64
  • Java extension version: Java Extension Pack 0.7.1
  • $JAVA_HOME: /usr/lib/jvm/java-1.11.0-openjdk-amd64/bin
Steps To Reproduce
  1. Set a new shortcut for command java.action.generateConstructorsPrompt
    Ex:
    image

  2. Try it in a java class

Current Result

Show a message: Internal Error
image

Expected Result

image

Additional Informations

I tried java.action.generateConstructorsPrompt and java.action.organizeImports.
Both commands does not work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Visual Studio Code using the listed Java extension, JDK, and operating system versions. Start with the java.action.generateConstructorsPrompt and java.action.organizeImports commands and inspect the resulting Internal Error. Done means both commands work when assigned to shortcuts and produce their expected Java actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.