Conflict-marker diagnostic falsely rejects heredoc content
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
- 68/100
Línea de trabajo
Comienza con el diagnóstico de marcadores de conflicto introducido por el commit 2d3c36bb235 y reproduce el caso mínimo de heredoc; después inspecciona el manejo del parser alrededor de CONFLICT_MARKER. Usa test.pl de la reproducción de Text::FormatTable v1.03 y las pruebas de diagnóstico existentes para marcadores de conflicto como comprobaciones. Se considera terminado cuando el heredoc y el texto de marcador entre comillas compilan, mientras que los marcadores genuinos del código fuente siguen produciendo diagnósticos en ambos backends, JVM e intérprete.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
PerlOnJava incorrectly reports a version-control conflict marker when a Perl heredoc contains a legitimate run of = characters. This is a parser regression that breaks Text::FormatTable v1.03.
CPAN evidence
- CPAN run:
20260918-141920-96054 - Distribution:
Text::FormatTablev1.03 - System Perl: PASS — 5 tests
- PerlOnJava: FAIL during compilation
- Both JVM and interpreter backends reproduce the failure
The upstream test contains a heredoc with expected table output. One line consists of a run of equals signs:
my $shouldbe = <<'END';
a| b c
=================
...
END
PerlOnJava aborts before the test can run:
Version control conflict marker at test.pl line 21, near "============="
The same test passes under standard Perl.
Root cause
The conflict-marker diagnostic added by commit 2d3c36bb2355 treats the equals-sign content inside the heredoc as a CONFLICT_MARKER token. The diagnostic is intended for actual source-level merge markers such as a standalone ======= line, but it is being applied to literal heredoc content where the text must remain part of the string.
The failure is therefore independent of Text::FormatTable behavior; the module's test data happens to contain the triggering text.
Reproduction
Run the Text::FormatTable v1.03 test suite with PerlOnJava. The test.pl program fails at the heredoc line containing the table rule. A minimal equivalent reproducer is:
my $text = <<'END';
=======
END
This must compile as a string literal and must not raise a conflict-marker diagnostic. The archived CPAN run reproduces the failure on both execution backends.
Expected behavior
Conflict-marker diagnostics should not inspect or tokenize the contents of quoted strings, including heredocs. Literal sequences of seven or more <, =, or > characters inside a string must remain string data.
Actual source-level conflict markers should continue to receive the intended diagnostic when they occur in a context where Perl treats them as source rather than string content.
Requested fix
- Restrict conflict-marker detection to valid source-level marker positions outside quoted strings and heredocs.
- Preserve the existing diagnostics for genuine conflict markers.
- Add a focused parser regression test covering equals-sign runs in heredocs and quoted strings.
- Rerun
Text::FormatTablev1.03 and the existing conflict-marker diagnostic tests on both JVM and interpreter backends.
- Lenguaje dominante
- Perl
- Estrellas
- 64
- Forks
- 7
- Merge medio
- 4 h 29 min
- PR fusionados (30 d)
- 176
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
-
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:platform area:runtime bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
fglock/PerlOnJava#1635 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:runtime bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
fglock/PerlOnJava#1634 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
fglock/PerlOnJava#1633 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
inverse-inc/packetfence#9387 ·
Los mantenedores suelen responder en 1 día
-
`-static-libstdc++` breaks buildAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
linux-test-project/lcov#552 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
szTheory/exifcleaner#383 ·
Los mantenedores suelen responder en 1 día
-
thrift: security issues < 0.25.0Abierto1.severity: security
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
NixOS/nixpkgs#569828 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
ESCOMP/CAM#1701 · 1 comentario ·
Los mantenedores suelen responder en 3 días