Compiler SIGABRT: narrowed value does not have the type its narrowing proved (effect Schema/Config-heavy graph)
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
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- compilers
Línea de trabajo
Start with the compiler’s narrowing and type-predicate checking paths, then compare this crash with issue #4171. Reproduce using the repro.ts import of ./src/cli/config.ts from the issue and scriptc build repro.ts -o /tmp/repro --optimization dev. The issue does not identify compiler source files or a focused test; done means the narrowed-value assertion no longer aborts on this repro and a regression test covers the case.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Symptom
Compiling the t3code CLI graph (apps/server/src/binMain.ts or binCli.ts) fails with:
error SC3004: TypeScript API protocol: unexpected end of stream
The SC3004 is a secondary symptom: the compiler process aborts (SIGABRT, exit 134) early — within a minute, at only ~25 MB RSS, so this is not the large-graph memory ceiling. A single-file probe reproduces the abort directly with the real diagnostic:
scriptc: a narrowed value does not have the type its narrowing proved (a type predicate or assertion may be wrong)
Minimal-ish repro
From espetro/t3code branch cursor/scriptc-native-server-7e1f (commit 06d4b24314), in apps/server:
// repro.ts
import * as M from "./src/cli/config.ts";
console.log(typeof M);
scriptc build repro.ts -o /tmp/repro --optimization dev
# exit 134 (SIGABRT): "a narrowed value does not have the type its narrowing proved"
src/cli/config.ts is a narrowing-heavy module: effect/Config, effect/Schema, SchemaTransformation, effect/cli Flag schemas, @t3tools/contracts schemas. The crash fires during checking/lowering before any diagnostic location is printed.
Notes
- Same class of internal assertion as #4171 (that one reports it via
scriptc coverageon @effect/platform-node programs); this repro crashes during a plainscriptc build, on a different (narrowing-heavy) shape, and earlier in the pipeline. - Bisecting the t3code graph narrowed the trigger to the config/schema module cluster above; a standalone file importing only that module reproduces.
- Happy to provide the module sources or a trimmed repro if useful.
Environment
- scriptc 0.4.17 (also reproduces on the fork synced to upstream main
ddbbc1e30b) - macOS arm64
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.7k
- Forks
- 229
- Merge medio
- 14 h 29 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 4/5 3-5 días Aptitud para principiantes 58/100
vercel-labs/scriptc#4865 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
vercel-labs/scriptc#4864 ·
Los mantenedores suelen responder en 1 día
-
Windows ARM64 as a cross-compile targetPosiblemente ocupada @hum-n la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
vercel-labs/scriptc#4858 ·
Los mantenedores suelen responder en 1 día
-
post-merge-bisect-unresolved
Dificultad 3/5 1-2 días Aptitud para principiantes 43/100
vercel-labs/scriptc#4791 ·
Los mantenedores suelen responder en 1 día
-
post-merge-bisect-unconfirmed
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
vercel-labs/scriptc#4755 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de vercel-labs/scriptc
Issues similares
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/clickhouse-js#1293 ·
Los mantenedores suelen responder en 1 día
-
area: middleware enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
agent/quality testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
juspay/agent-distro#203 ·
Los mantenedores suelen responder en 1 día