redhat-developer / redhat-developer/vscode-java

Unhelpful error message if JDK is too new compared to Gradle

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

Nobody has claimed this yet.

Gradle
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.

image

Environment
  • Operating System: Windows 11
  • JDK version: 20
  • Visual Studio Code version: 1.82
  • Java extension version: v1.22.2023090904
Steps To Reproduce
  1. use JDK 20 as the default JDK on your PC
  2. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.