vscode-java
vscode-java copied to clipboard
Unhelpful error message if JDK is too new compared to Gradle
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.