Playground: `exit of N` returns rc 1 from eigs_run_source instead of N
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 62/100
Línea de trabajo
El valor de retorno se calcula en eigs_run_source en web/eigs_wasm.c, que devuelve g_has_error ? 1 : 0 sin leer g_exit_code. Empieza ahí y comprueba cómo exit of N asigna g_exit_code. Está terminado cuando exit of 3 devuelve 3, exit of 0 devuelve 0, los errores de ejecución siguen devolviendo 1 y la fila exit of 3 de tests/test_playground_wasm_2301.sh fija el valor en lugar de aceptar null.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found while fixing #2301 (PR #2302, hq#58 ES-OWF-1).
Problem
In the browser playground, exit of N does not propagate N. eigs_run_source (web/eigs_wasm.c) returns g_has_error ? 1 : 0 and never reads g_exit_code, so:
| program | CLI exit status | playground eigs_run_source rc |
|---|---|---|
exit of 3 |
3 | 1 |
exit of 0 |
0 | not pinned (expected 0) |
(rc 1 measured on a real emcc 3.1.74 build in PR #2302's CI.) The playground cannot distinguish exit of 3 from a runtime error. tests/test_playground_wasm_2301.sh accepts any number for this row (wantRc null), so nothing pins the value.
Done when
-
eigs_run_source("exit of 3")returns 3, andeigs_run_source("exit of 0")returns 0, in a real emcc build ofweb/build.sh. - A runtime error still returns 1, and a plain run after any of these in the same module still returns 0 with its output.
- The
exit of 3row in the playground test pins the rc (nonullwildcard). The test runs inpages.ymlbefore the receipt and goes red on the currentg_has_error ? 1 : 0return. -
web/app.jsshows the exit code if the UI surfaces rc. If it does not, the PR says so.
Generated by Claude Code
- Lenguaje dominante
- C
- Estrellas
- 3
- Forks
- 7
- Merge medio
- 6 h 21 min
- PR fusionados (30 d)
- 323
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 InauguralSystems/EigenScript
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
InauguralSystems/EigenScript#2305 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:ci bug found-by:duet-audit
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
InauguralSystems/EigenScript#2283 ·
Los mantenedores suelen responder en 1 día
-
area:docs found-by:duet-audit kind:docs-drift
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
InauguralSystems/EigenScript#2282 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverAbiertoarea:gfx kind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
InauguralSystems/EigenScript#2216 ·
Los mantenedores suelen responder en 1 día
-
area:gfx kind:bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
InauguralSystems/EigenScript#2215 ·
Los mantenedores suelen responder en 1 día
Todos los issues de InauguralSystems/EigenScript
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pocoproject/poco#5626 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FujiNetWIFI/fujinet-lib#272 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
facebookincubator/muse-gadget-sdk#301 ·
Los mantenedores suelen responder en 2 días
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdictPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertodocumentation severity: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
luainkernel/lunatik#2231 ·
Los mantenedores suelen responder en 1 día
-
aspect ratio 16:10Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Revivedx/SavageWindRecomp#402 ·
Los mantenedores suelen responder en 1 día