redhat-developer / redhat-developer/vscode-java
Unhelpful error message if JDK is too new compared to Gradle
未关闭
还没有人认领这个 Issue。
Gradle
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件、测试或入口点。使用 JDK 20、一个使用 JDK 17 的 Gradle 项目以及 Gradle wrapper 7.5 复现,然后跟踪扩展的 Gradle/JDK 兼容性错误处理。完成标准是消息能够区分升级 Gradle 和配置 JDK 17 运行时。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100