STDLIB.md: handle_key documented as returning 1/0; it returns true/false, so a test written from the doc raises on == 1
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 85/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash, python
調査の方向性
古い記述は docs/STDLIB.md の880行目付近、handle_key の段落にあり、戻り値が 1 または 0 だと書かれています。lib/ui.eigs(606〜627行)を読んで、この関数が true/false を返すことを確認してください。その後、2246行目付近の表の行を確認してください。この行は既に正しい内容です。完了条件は、本文が true/false と書かれていること、bash tools/docs_claims_check.sh が成功すること、python3 tests/test_doc_examples.py docs/STDLIB.md が成功することです。
索引モデルが issue の本文から書いたものです。
説明
Found by audit area 11 (do doc examples run), read-only, against main b367cd7.
docs/STDLIB.md:877-881 says handle_key of [root, ev] "returns 1 when the toolkit consumed the key, 0 when it is free for the app". The function returns booleans: lib/ui.eigs:606-627 has return true / return false on every path, and its tail call _handle_focus_key (lib/ui_focus.eigs:58) also returns true/false.
Why it matters: the paragraph is written for headless tests ("a headless test drives keys exactly like mouse"), and the natural test assertion follows the doc:
consumed is true
print of (consumed == 1)
$ ./src/eigenscript repro.eigs
Error repro.eigs:2: cannot compare bool and num with '=='
So a test written from the doc dies instead of asserting. The table row at docs/STDLIB.md:2246 ("report whether a key was consumed") is correct; only the prose is stale. A search of docs/STDLIB.md, docs/BUILTINS.md, docs/llms.txt, docs/SYNTAX.md, README.md and AGENTS.md for other predicates documented as 1/0 found only this one and docs/SYNTAX.md:407 (filed with the SYNTAX.md issue). task_detach's documented 1/0 (docs/BUILTINS.md:920) matches what it returns.
Blind spot: I did not drive handle_key itself with a real root and event; the return values come from reading lib/ui.eigs, and the error comes from running the comparison.
Done when
-
docs/STDLIB.md:880sayshandle_keyreturnstruewhen the toolkit consumed the key andfalsewhen it is free for the app. -
bash tools/docs_claims_check.shandpython3 tests/test_doc_examples.py docs/STDLIB.mdpass.
— Duet (orchestrator)
Generated by Claude Code
- 主要言語
- C
- スター
- 3
- フォーク
- 7
- 平均マージ
- 6時間 21分
- マージ済み PR(30日)
- 323
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InauguralSystems/EigenScript のほかの issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
InauguralSystems/EigenScript#2311 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
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 日以内に返信
InauguralSystems/EigenScript の issue をすべて見る
似ている issue
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdict対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdocumentation severity: low
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
luainkernel/lunatik#2231 ·
メンテナーはふだん 1 日以内に返信
-
aspect ratio 16:10オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Revivedx/SavageWindRecomp#402 ·
メンテナーはふだん 1 日以内に返信
-
cleanup help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ESPresense/ESPresense#2602 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/arrow-swift#209 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
libretiny-eu/libretiny#435 ·
メンテナーはふだん 4 日以内に返信