execFile callback option timeout has no lowering (SC2020)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
Línea de trabajo
Start with lowerExecFileCall in packages/compiler/src/frontend/lowering/builtins/child-process.ts and compare callback-form options with the promisified timeout support in child-process-async.ts. Then trace scr_exec_file, scr_exec_file_cwd, and scr_child_kill_signo in packages/runtime/src/scr_child.c to assess where timeout handling fits. Done means the repro kills the child after the requested timeout and the callback receives an error with killed: true, matching Node behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
scriptc 0.4.11, main at 918d80b26a, macOS arm64.
Repro:
import { execFile } from "node:child_process";
execFile("sleep", ["5"], { timeout: 1000 }, (err) => console.log(err ? "killed" : "ok"));
Actual: error SC2020: 'execFile option 'timeout'' is part of the standard library types but has no scriptc lowering yet. The hint lists encoding, maxBuffer, cwd, windowsHide, windowsVerbatimArguments and shell as the only supported callback-form options.
Expected: the child is killed with SIGTERM after the timeout and the callback receives an error with killed: true, as in Node. The promisified form already supports timeout via cp.execCapture (child-process-async.ts).
Pointers: option whitelist in lowerExecFileCall (packages/compiler/src/frontend/lowering/builtins/child-process.ts); the runtime has scr_exec_file/scr_exec_file_cwd and scr_child_kill_signo (packages/runtime/src/scr_child.c) which a timer could use.
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.5k
- Forks
- 212
- Merge medio
- 13 h 46 min
- PR fusionados (30 d)
- 787
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 vercel-labs/scriptc
-
Dificultad 3/5 1-2 días Aptitud para principiantes 54/100
vercel-labs/scriptc#3534 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 46/100
vercel-labs/scriptc#3533 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
vercel-labs/scriptc#3532 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 66/100
vercel-labs/scriptc#3531 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
vercel-labs/scriptc#3530 ·
Los mantenedores suelen responder en 1 día
Todos los issues de vercel-labs/scriptc
Issues similares
-
area:tooling good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
interledger/publisher-tools#1007 ·
Los mantenedores suelen responder en 1 día
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
databrickslabs/ontos#1420 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vercel-labs/just-bash#756 ·
Los mantenedores suelen responder en 1 día
-
area: ci good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
interledger/web-monetization-extension#1555 ·
Los mantenedores suelen responder en 1 día
-
[t-dialog] 弹窗组件和抽屉组件的文档说明不够详细清楚Abierto🐞 bug 🧐 unconfirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Tencent/tdesign-vue-next#7056 · 1 comentario ·
Los mantenedores suelen responder en 1 día