redhat-developer / redhat-developer/vscode-java
“Failed to configure project” when resources nested inside source folder
Chưa có ai nhận issue này.
- 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ả
The VS Code Java plugin cannot import a project from a build.gradle file that places a test resources directory inside a test source directory. Gradle itself, however, supports this.
Environment
- Operating System: macOS 10.15.6
- JDK version: OpenJDK 14.0.2
- Visual Studio Code version: 1.48.1
- Java extension version: 0.65.0
Steps To Reproduce
Populate build.gradle with the following simple configuration:
plugins {
id 'java'
}
sourceSets {
test.java.srcDirs = ['test']
test.resources.srcDirs = ['test/res']
}
Current Result
The VS Code plugin will produce a Failed to configure project error (with no further information, AFAICT).
However, gradle test will execute perfectly happily.
Expected Result
It should import the project with test/res copied to the test resources folder, just as gradle itself does.
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.
Hướng nghiên cứu
Tái hiện cấu hình dự án được thể hiện trong build.gradle, sau đó lần theo cách VS Code Java plugin xử lý việc import Gradle đối với các tài nguyên kiểm thử lồng nhau. Hoàn thành khi dự án được import mà không có lỗi “Failed to configure project” và test/res được sao chép vào thư mục tài nguyên kiểm thử.
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, vscode
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100