redhat-developer / redhat-developer/vscode-java
"Project cannot be built until its prerequisite is built" errors each time I close & open VSCode
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ả
I have a multi-module Maven project that I created using Eclipse, and now I am trying to migrate to VSCode.
I have opened the project in VSCode, and it has updated all .project and .classpath files. There is no error in the project, and everything seems to work perfectly.
But after I close VSCode and open it again, without having changed a single line, after Java builds everything, suddenly most of the modules are in red, and I see this type of error in the Problems tab:
"The project cannot be built until its prerequisite XXX is built. Cleaning and building all projects is recommended"
If I "Clean Java Language Server Workspace", the problems disappear, until I close+open VSCode again.
If I "Force Java Compilation > Full", the same. Problems disappear until the next restart.
I guess this shouldn't happen, but I don't know if it is a problem in my project (as I've said, everything works until I close the workspace), I have something configured incorrectly or it is a bug in vscode-java (and if so, if there's any workaround).
I am using JDK 8.
I have tried the pre-release version too, but I get the same problems.
Thank you in advance, please let me know if you need more info.
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
Bắt đầu bằng cách tái hiện lỗi với dự án Maven đa mô-đun sau khi mở lại VSCode, đồng thời so sánh các tệp .project và .classpath trước và sau các lần build Java. Kiểm tra xem việc dọn dẹp Java Language Server Workspace hoặc sử dụng Force Java Compilation > Full có làm thay đổi kết quả hay không. Hoàn thành khi xác định được nguyên nhân liên quan đến việc khởi động lại hoặc một cách khắc phục đáng tin cậy cho các lỗi điều kiện tiên quyết.
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, developer-experience, tooling
- 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ần làm rõ
- Mức phù hợp với người mới
- 25/100