redhat-developer / redhat-developer/vscode-java
bootstrapClasspath not working
Đang mở
@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
- Clone https://github.com/chuckb/haikuVM
- ./gradlew build (note that it builds)
- 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.