PadWalker peek_our misses file-scope our variables on JVM
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Perl
- Estrellas
- 64
- Forks
- 7
- Merge medio
- 5 h 25 min
- PR fusionados (30 d)
- 178
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fglock/PerlOnJava
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fglock/PerlOnJava#1651 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#1579 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:unicode bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
fglock/PerlOnJava#1341 ·
Los mantenedores suelen responder en 1 día
-
area:runtime bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
fglock/PerlOnJava#1700 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
fglock/PerlOnJava#1696 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
bug help wanted
Dificultad 2/5 Menos de una hora Aptitud para principiantes 70/100
bioepic-data/bervo#145 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Ubuntu .deb packages ship all files owned by uid/gid 1001 (CI user runner) instead of root:rootAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Help-Wanted Needs-Triage Package-Update
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/winget-pkgs#448814 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
FOODTURE
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
openfoodfacts/openfoodfacts-server#14853 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Perl/Fish oddness in new versionAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
gugod/App-perlbrew#879 ·