redhat-developer / redhat-developer/vscode-java

bootstrapClasspath not working

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

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

Từ ngày 17/1/2019.

compile Gradle upstream
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ả

I have a gradle project that sets a bootstrapClasspath like so:

tasks.withType(JavaCompile) {
  options.bootstrapClasspath = files(project(":haikuRT").tasks["compileJava"].destinationDir, "../lib/nxt/classes.jar")
}

If I do a gradlew build, the project builds without error. However, vscode continues to show compile errors because bootstrapClasspath is not honored. For example, a modification has been made (a method added) to the Thread class however the language server is accessing the Thread class within the JDK.

Environment
  • Operating System: Both Windows 10 and OSX 10.12.5
  • JDK version: Both 1.8 and 11
  • Visual Studio Code version: 1.30.2
  • Java extension version: unknown
Steps To Reproduce
  1. Clone https://github.com/chuckb/haikuVM
  2. ./gradlew build (note that it builds)
  3. Observe that the bootstrap subproject has compile errors.
Current Result

Gradle build and vscode show inconsistent results.

Expected Result

vscode should show no compile errors.

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.