Parse::Yapp::KeyValue build loses generated Parser.pm
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- perl
- Lĩnh vực
- build-system, testing-qa
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện bản build sạch của Parse::Yapp::KeyValue và kiểm tra MakeParser.PL, target của Makefile được tạo ra cũng như cách PerlOnJava xử lý build và filesystem. So sánh kết quả của interpreter và JVM, sau đó sử dụng t/1pod.t và t/2keyvalue.t làm bộ kiểm thử hồi quy tập trung. Được xem là hoàn tất khi việc tạo Parser.pm lồng nhau thành công hoặc build thất bại ngay lập tức, đồng thời cả hai test đều vượt qua trên cả hai backend.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Parse::Yapp::KeyValue 0.1 passes its complete upstream test suite under system Perl, but PerlOnJava fails because the distribution's build-time MakeParser.PL step does not create the generated Parser.pm file.
Reproduction
CPAN random tester run: 20260918-141920-96054
Distribution: Parse::Yapp::KeyValue 0.1 (reported module version is 0.10)
The exact prerequisite distributions were installed into an isolated library for the system-Perl comparison:
Parse::Template3.08Parse::Lex2.21Parse::Yapp1.21
System Perl 5.42.2:
All tests successful.
Files=2, Tests=17
Result: PASS
PerlOnJava:
Files=2, Tests=2
Result: FAIL
Failed 1/2 test programs. 1/2 subtests failed.
Failure details
The distribution's MakeParser.PL contains:
my $path = 'blib/lib/Parse/Yapp/KeyValue';
my $file = "$path/Parser.pm";
my $parser = new Parse::Yapp(inputfile => 'grammar.yp');
mkdir $path || die "could not create directory $path: $!";
open(FILE, ">$file") || die "unable to open $file: $!";
On PerlOnJava, make invokes this generator and reports:
unable to open blib/lib/Parse/Yapp/KeyValue/Parser.pm: No such file or directory at MakeParser.PL line 10.
make: [pl_files] Error 2 (ignored)
The generated file is absent afterward. The make target nevertheless reports a successful build because the generator error is ignored. The subsequent test failure is:
Can't locate Parse/Yapp/KeyValue/Parser.pm in @INC
and t/2keyvalue.t cannot load Parse::Yapp::KeyValue.
The other test file, t/1pod.t, passes.
Scope and diagnosis
This is reproducible on the current PerlOnJava build with a clean extracted distribution. It is not caused by Parse::Yapp's grammar generation: running the same MakeParser.PL with the interpreter backend succeeds when the destination parent directory is pre-created and produces Parser.pm correctly.
The failure is therefore in PerlOnJava's build/filesystem handling for the nested generated-file destination, or in the interaction between that handling and the generated Makefile target. The ignored generator error also allows an incomplete build to proceed to testing.
Expected behavior
make should generate blib/lib/Parse/Yapp/KeyValue/Parser.pm successfully, or fail the build immediately if generation fails. After generation, both t/1pod.t and t/2keyvalue.t should pass on the JVM and interpreter backends.
Please add a focused regression test for nested directory creation/generated-file output and verify the full Parse::Yapp::KeyValue suite after the fix.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 6
- Merge trung bình
- 5 giờ 33 phút
- Pull request đã merge (30 ngày)
- 170
Chuẩn bị môi trường
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.
Issue khác của fglock/PerlOnJava
-
area:cpan-port area:unicode bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
fglock/PerlOnJava#1341 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:backend area:cpan-port bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
fglock/PerlOnJava#1522 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:backend area:io area:unicode bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
fglock/PerlOnJava#1520 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:cpan-port area:memory area:runtime bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
fglock/PerlOnJava#1515 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:cpan-port area:io area:runtime bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
fglock/PerlOnJava#1514 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
Bug Priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
canonical/chisel-releases#1235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
linuxmuster/sophomorix4#190 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
documentation Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
trizen/youtube-viewer#456 ·