redhat-developer / redhat-developer/vscode-java

Update error message when enable javac without setting jdk23

Open
#3,882 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Environment
  • Operating System: Linux
  • JDK version: 23
  • Visual Studio Code version: 1.95.3
  • Java extension version: 1.37.0
Steps To Reproduce
  1. Enable javac in settings: "java.jdt.ls.javac.enabled": "on"
  2. Open a java project
Current Result

Then you will get the error as below. It doesn't work if only set java.configuration.runtimes following the message in this error. Extension can work with java.jdt.ls.java.home which doesn't indicate in the error message.

Image

Expected Result

Update the error message to prompt users to set java.jdt.ls.java.home.

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 the Java extension with JDK 23 by enabling java.jdt.ls.javac.enabled and opening a Java project. Find the code that produces the configuration error and update its guidance to mention java.jdt.ls.java.home; verify that the resulting message matches the expected setup.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.