redhat-developer / redhat-developer/vscode-java

If wrapper is disabled, Gradle import should prefer the one on the Path over the embedded one

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

Chưa có ai nhận issue này.

Gradle preferences
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ả

With "java.import.gradle.wrapper.enabled": false, the import prefers the embedded Gradle over the Gradle on the Path. This is counterintuitive and leads to errors: currently the embedded Gradle is 7.1.1, which is unable to import JDK 17 projects.
I know that I can set java.import.gradle.home, but that is merely a workaround.

Environment
  • Operating System: Windows 11
  • JDK version: 17.0.2
  • Visual Studio Code version: 1.65.2
  • Java extension version: 1.4.0
Steps To Reproduce
  1. have Gradle 7.3.1+ on the Path
  2. set "java.import.gradle.wrapper.enabled": false
  3. import a JDK 17-based Gradle project
Current Result

Fails with an error related to the embedded Gradle

Expected Result

Succeeds because the Gradle on the Path is preferred over the embedded Gradle

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.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện việc import Gradle với java.import.gradle.wrapper.enabled được đặt thành false, Gradle 7.3.1 hoặc mới hơn trong PATH và một project dựa trên JDK 17. Theo dõi entry point của quá trình chọn Gradle và xác minh rằng bản cài đặt trong PATH được chọn thay vì Gradle tích hợp, sau đó xác nhận rằng project được import thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

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.