redhat-developer / redhat-developer/vscode-java

Unhelpful error message if JDK is too new compared to Gradle

未关闭
#3,283 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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.

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。