redhat-developer / redhat-developer/vscode-java

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

Đang mở
#4,357 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@fbricon đang làm issue này rồi.

Từ ngày 9/3/2026.

bug Gradle
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.