Playground: `exit of N` returns rc 1 from eigs_run_source instead of N
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
戻り値は web/eigs_wasm.c の eigs_run_source で計算されており、g_exit_code を読まずに g_has_error ? 1 : 0 を返しています。まずそこから始めて、exit of N がどのように g_exit_code を設定するかを確認してください。exit of 3 が 3 を返し、exit of 0 が 0 を返し、実行時エラーは引き続き 1 を返し、tests/test_playground_wasm_2301.sh の exit of 3 の行が null を受け入れるのではなく値を固定していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C
- スター
- 3
- フォーク
- 7
- 平均マージ
- 6時間 26分
- マージ済み PR(30日)
- 318
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InauguralSystems/EigenScript のほかの issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
InauguralSystems/EigenScript#2305 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:ci bug found-by:duet-audit
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
InauguralSystems/EigenScript#2283 ·
メンテナーはふだん 1 日以内に返信
-
area:docs found-by:duet-audit kind:docs-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
InauguralSystems/EigenScript#2282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverオープンarea:gfx kind:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
InauguralSystems/EigenScript#2216 ·
メンテナーはふだん 1 日以内に返信
-
area:gfx kind:bug
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
InauguralSystems/EigenScript#2215 ·
メンテナーはふだん 1 日以内に返信
InauguralSystems/EigenScript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cython/cython#8110 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
ai-driven-fuzzing bug claude Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
linagora/open-bastion#425 ·
メンテナーはふだん 1 日以内に返信
-
question
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
follow-up Prio 📌
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
moonbitlang/async#713 ·
メンテナーはふだん 1 日以内に返信