Playground: `exit of N` returns rc 1 from eigs_run_source instead of N
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 62/100
Direzione di ricerca
Il valore di ritorno viene calcolato in eigs_run_source in web/eigs_wasm.c, che restituisce g_has_error ? 1 : 0 senza leggere g_exit_code. Inizia da lì e verifica come exit of N imposta g_exit_code. È completato quando exit of 3 restituisce 3, exit of 0 restituisce 0, gli errori di runtime restituiscono ancora 1 e la riga exit of 3 in tests/test_playground_wasm_2301.sh fissa il valore invece di accettare null.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C
- Stelle
- 3
- Fork
- 7
- Merge medio
- 6h 21m
- PR unite (30g)
- 323
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un 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 InauguralSystems/EigenScript
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
InauguralSystems/EigenScript#2305 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:ci bug found-by:duet-audit
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
InauguralSystems/EigenScript#2283 ·
I maintainer di solito rispondono entro 1 giorno
-
area:docs found-by:duet-audit kind:docs-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
InauguralSystems/EigenScript#2282 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverApertaarea:gfx kind:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
InauguralSystems/EigenScript#2216 ·
I maintainer di solito rispondono entro 1 giorno
-
area:gfx kind:bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
InauguralSystems/EigenScript#2215 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di InauguralSystems/EigenScript
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
pocoproject/poco#5626 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
FujiNetWIFI/fujinet-lib#272 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
facebookincubator/muse-gadget-sdk#301 ·
I maintainer di solito rispondono entro 2 giorni
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdictForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertadocumentation severity: low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
luainkernel/lunatik#2231 ·
I maintainer di solito rispondono entro 1 giorno
-
aspect ratio 16:10Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Revivedx/SavageWindRecomp#402 ·
I maintainer di solito rispondono entro 1 giorno