redhat-developer / redhat-developer/vscode-java
Compact source files should not cause package error when placed in subfolders
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 am a teacher and I want to use Compact Source files in my courses. But since the students will have many programs to write, I want to place them in subfolders. Right now, when I do that, I get a compile error that the package does not match the folder where the Compact Source file is located : The declared package "" does not match the expected package "sandbox" Java(536871240) .
Is it possible to add the relative path of the Compact Source implicitly to the classpath/sourcepath while compiling/running/debugging the file? So each time a Compact Source is detected, only the relative path to that file is added, not all path to all Compact Source in the project. An option could be useful, like "Implicitly add relative path of Compact Source to sourcepath : true/false".
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 lỗi package Java(536871240) bằng một tệp Compact Source trong một thư mục con, sau đó theo dõi cách các tệp Compact Source được xử lý trong quá trình biên dịch, chạy và gỡ lỗi. Được xem là hoàn thành khi tệp hoạt động từ thư mục con của nó mà không gặp lỗi không khớp package, và chỉ đường dẫn tương đối của tệp được thêm vào sourcepath khi hành vi này được bậ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, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Tính năng
- Độ 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
- 35/100