vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Unhelpful error message if JDK is too new compared to Gradle

Open anthonyvdotbe opened this issue 2 years ago • 0 comments

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.

anthonyvdotbe avatar Sep 11 '23 08:09 anthonyvdotbe