DownloadChecksumJob fails for Gradle snapshot versions fetched from versions API, causing projects to fall back to unmanaged/invisible project mode

未关闭
#4,357 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@fbricon 已经在做这个了。

开始于 2026年3月9日。

评估

这个 Issue 还没有评估数据。

描述

bug Gradle

Description:

Extension version: redhat.java 1.53.0
OS: Linux (Ubuntu 24)
Java version: (openjdk version "11.0.30" 2026-01-20)
Gradle versions in projects: 6.4, 6.5, 6.8, 7.6.3, 8.3, 8.4 (none using 9.3.0)

Problem:
On every startup, DownloadChecksumJob attempts to validate a checksum for gradle-9.3.0-20251002004537+0000 — a snapshot version not used by any project in the workspace. The snapshot URL no longer exists on Gradle's distribution server, causing a FileNotFoundException. This causes Buildship to fail importing affected projects as Gradle projects, falling back to unmanaged/invisible project mode and outputting compiled classes to bin/ instead of build/.
Evidence:

No project in the workspace references 9.3.0
The version appears in workspaceStorage/.../org.eclipse.buildship.core/gradle/versions.json, suggesting Buildship fetches all versions from the Gradle versions API (including snapshots) and attempts checksum validation for all of them
Deleting the workspaceStorage folder is only a temporary fix as it regenerates on next startup

Expected behavior:
Checksum validation should only run for Gradle versions actually used by projects in the workspace, not all versions fetched from the remote API.

主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redhat-developer/vscode-java 的其他 Issue

查看 redhat-developer/vscode-java 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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