STDLIB.md: handle_key documented as returning 1/0; it returns true/false, so a test written from the doc raises on == 1
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bash, python
- Área
- documentation
Línea de trabajo
El texto desactualizado está en docs/STDLIB.md alrededor de la línea 880, en el párrafo de handle_key que dice que devuelve 1 o 0. Lee lib/ui.eigs (líneas 606-627) para confirmar que la función devuelve true/false y luego revisa la fila de la tabla cerca de la línea 2246, que ya es correcta. Está terminado cuando el texto dice true/false, bash tools/docs_claims_check.sh pasa y python3 tests/test_doc_examples.py docs/STDLIB.md pasa.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C
- Estrellas
- 3
- Forks
- 7
- Merge medio
- 6 h 26 min
- PR fusionados (30 d)
- 318
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#2311 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
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
Todos los issues de InauguralSystems/EigenScript
Issues similares
-
examples/dnsdoctor: cleanup.sh stops at the first missing piece of a setup.sh that did not finishAbiertoseverity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
luainkernel/lunatik#2263 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
vercel-labs/scriptc#2910 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
darktable-org/darktable#22939 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
espressif/idf-extra-components#903 ·
Los mantenedores suelen responder en 1 día
-
os: input_password leaves terminal echo disabled when reading failsPosiblemente ocupada @davlgd la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día