redhat-developer / redhat-developer/vscode-java
Unhelpful error message if JDK is too new compared to Gradle
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
The extension sometimes incorrectly suggests to "upgrade" Gradle, while in fact it would be a downgrade.
Environment
- Operating System: Windows 11
- JDK version: 20
- Visual Studio Code version: 1.82
- Java extension version: v1.22.2023090904
Steps To Reproduce
- use JDK 20 as the default JDK on your PC
- open a Gradle project that targets JDK 17 and has a Gradle wrapper at version 7.5
Current Result
The unhelpful error as shown above.
Expected Result
A helpful error, which suggests to either (a) upgrade Gradle to a reasonable version, or (b) configure java.configuration.runtimes to use an actual JDK 17 installation for the JavaSE-17 runtime.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named. Reproduce with JDK 20, a JDK 17 Gradle project, and Gradle wrapper 7.5, then trace the extension's Gradle/JDK compatibility error handling. Done means the message distinguishes upgrading Gradle from configuring a JDK 17 runtime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100