redhat-developer / redhat-developer/vscode-java
Self referencing maven modules should not trigger an infinite loop in 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ả
Vscode enters an infinite loop while trying to compile a falsy module setup. It should instead break the build should break with an error stating that a module is self-referencing itself the same way the maven cli report it.
Environment
- Operating System: OSX BIg Sur
- JDK version: OpenJDK 11.0.8 2020-07-14
- Visual Studio Code version: [Version: 1.56.2 Commit: 054a9295330880ed74ceaedda236253b4f39a335]
- Java extension version:
Steps To Reproduce
- Create a parent maven project with packaging type
pom-parent - Create a submodule (module-1) project with the packaging type '
jar' in the previous parent project - Add a dependency of
module-1inparentwith the save version (${project.version}) - See the error: Vscode will enter an infinite loop trying to resolve the dependency
Sample project reproducing the error
Current Result
The build will never get past the 339/1000 as displayed in the console (infinite loop)
Expected Result
Build should terminate with error as done bymaven when using the cli.
Additional Informations
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 import project test-self-ref.zip đính kèm vào Java extension và so sánh hành vi của nó với Maven CLI. Truy vết đường dẫn phân giải module chịu trách nhiệm dừng ở 339/1000; hoàn tất khi setup tự tham chiếu kết thúc bằng một lỗi thay vì lặp vô hạn.
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, devtools
- 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
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100