Parser rejects valid block argument syntax in Resource::Silo
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
The issue is in the parser, likely in the grammar for function calls with block arguments. Start by examining the parser source code, perhaps under a 'grammar' or 'parse' directory. Look for how set_prototype or similar functions with block and subsequent arguments are handled. The minimal reproducer my $x = set_prototype { 1 } q{}; should be added as a test case. Run the existing parser tests to see the failure, then debug by comparing the parse tree with standard Perl's output.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
PerlOnJava rejects valid Perl syntax used by Resource::Silo 0.1703. The
failure occurs while compiling the module, before its tests can run.
Reproduction
This standard-Perl expression is accepted by Perl 5:
my $shortcut_sub = set_prototype {
$instance //= $target->new;
} '';
PerlOnJava reports a syntax error at the closing expression. The smallest
reproducer is:
use Scalar::Util qw(set_prototype);
my $x = set_prototype { 1 } q{};
Evidence
- Distribution:
Resource-Silo0.1703 - CPAN random tester run:
20260922-180448-60378 - Failing test:
t/001-load.t, duringuse Resource::Silo - System Perl: PASS, 39 test files and 148 tests
- PerlOnJava JVM backend: FAIL
- PerlOnJava interpreter backend: FAIL
- The minimal reproducer passes on system Perl and fails on both PerlOnJava
backends. - The distribution is pure Perl and does not require XS or native code.
Expected behavior
PerlOnJava should parse and execute a function call whose first argument is an
anonymous block followed by a second expression, matching standard Perl's
handling of set_prototype { ... } ''.
Acceptance criteria
- Add focused project-owned regression coverage for this syntax.
- The regression passes on both JVM and interpreter backends.
Resource-Silo0.1703 passes its complete upstream test suite.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 6
- Merge trung bình
- 5 giờ 38 phút
- Pull request đã merge (30 ngày)
- 170
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.
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 ·
-
area:backend area:runtime bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
fglock/PerlOnJava#1511 ·
-
area:backend area:cpan-port bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
fglock/PerlOnJava#1508 · 1 bình luận ·
-
Port IPC::SysV (low priority) Đang mởarea:cpan-port area:platform enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
fglock/PerlOnJava#1507 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
fglock/PerlOnJava#1506 ·
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
documentation Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
trizen/youtube-viewer#456 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
connectivity Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Common US ingredient names are not recognized, so about 12.4k US products miss an allergen warning Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openfoodfacts/openfoodfacts-server#14657 · 4 bình luận ·