PadWalker peek_our misses file-scope our variables on JVM
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #1711 di @fglock — integrata
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
Start with the existing PadWalker regression coverage for peek_our(0) inside a subroutine and trace how the JVM backend handles that lookup; the issue does not name the relevant files. Add project-owned top-level coverage for both JVM and interpreter backends, checking the expected variable names and references against system Perl. Run the regression tests and the Test::Expander upstream suite; done means the exports load and the suite proceeds.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
After adding the bundled Scalar::Readonly support for #1664, jcpan -t Test::Expander 2.7.1 gets past the missing XS implementation but all 26 test programs fail while loading Test::Expander::Constants. The module populates @EXPORT_OK from PadWalker::peek_our(0) at file scope; on the JVM that lookup does not return its package variables, so imports such as $COMMENT, %OPTION_PARSER, and %REST_CONSTANTS_TO_EXPORT are reported as not exported.
Reproduction
use PadWalker qw(peek_our);
our $probe = 17;
my $vars = peek_our(0);
print join(',', sort keys %$vars), "\n";
System Perl reports $probe; PerlOnJava's JVM reports an empty key list. The existing PadWalker regression covers peek_our(0) inside a subroutine, but not at file scope.
The affected upstream run used nice -n 19 timeout 1800 ./jcpan -t Test::Expander. It failed 26/26 programs before their tests could run, with “is not exported by Test::Expander::Constants” errors. This is a follow-up to #1664: the missing Scalar::Readonly XS support is now available, and this issue tracks the separate PadWalker::peek_our behavior needed by this consumer.
Expected behavior
PadWalker::peek_our(0) should expose package our variables at file scope with Perl-compatible names and references, so Test::Expander::Constants can build its export list and the upstream suite can proceed.
Regression coverage
Add project-owned coverage for top-level peek_our(0) on both JVM and interpreter backends, validate the oracle with system Perl, then rerun the Test::Expander upstream suite.
- Lingua principale
- Perl
- Stelle
- 64
- Fork
- 7
- Merge medio
- 5h 8m
- PR unite (30g)
- 193
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fglock/PerlOnJava
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
fglock/PerlOnJava#1651 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#1579 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port area:unicode bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
fglock/PerlOnJava#1341 ·
I maintainer di solito rispondono entro 1 giorno
-
area:runtime bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
fglock/PerlOnJava#1744 ·
I maintainer di solito rispondono entro 1 giorno
-
HTTP::Cookies extraction drops Expires and SameSite attributesForse già presa @fglock l’ha presa oggi. Apertaarea:cpan-port bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
fglock/PerlOnJava#1743 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fglock/PerlOnJava
Issue simili
-
chore: remove unused .gemini configuration directoryForse già presa @JayadityaGit l’ha presa 1 giorno fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
openfoodfacts/openfoodfacts-server#14878 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
radiator-software/p5-net-ssleay#577 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
beyondgrep/website#143 ·
-
CPAN install failingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sous-chefs/perl#110 · 1 commento ·
-
bug help wanted
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 70/100
bioepic-data/bervo#145 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno