Skip to content

Attest trace fails on composite typescript projects #1306

Closed

Description

@JeremyMoeglich

Report a bug

🔎 Search Terms

incremental, composite

🧩 Context

  • attest 0.41.2

  • TypeScript version (5.1+): 5.7.3

    System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13500T
    Memory: 7.68 GB / 31.70 GB
    Binaries:
    Node: 23.6.1 - ~.proto\shims\node.EXE
    Yarn: 1.22.22 - ~.bun\bin\yarn.EXE
    npm: 10.9.0 - ~.proto\shims\npm.EXE
    pnpm: 9.15.4 - ~.proto\shims\pnpm.EXE
    bun: 1.2.1 - ~.proto\shims\bun.EXE
    npmPackages:
    @ark/attest: 0.41.2
    typescript: ^5.7.3 => 5.7.3

🧑‍💻 Repro

-- package.json --

{
  "name": "minimal-ts-composite",
  "version": "1.0.0",
  "dependencies": {
    "typescript": "^5.7.3"
  }
}

-- tsconfig.json --

{
  "compilerOptions": {
    "composite": true,
    "incremental": true,
    "declaration": true,
    "outDir": "dist",
    "rootDir": "src"
  },
  "include": [
    "src/**/*"
  ]
} 

-- src/index.ts --

export const value: number = 5; 

Install using any package manager and run npx @ark/attest trace .

⏳ Gathering type trace data for C:\Users\moeglich\dev\attest_issue_repro...
tsconfig.json:5:5 - error TS6379: Composite projects may not disable incremental compilation.

5 "declaration": true,
~~~~~~~~~~~~~

Found 1 error in tsconfig.json:5

Files: 8
Lines of Library: 34348
Lines of Definitions: 0
Lines of TypeScript: 1
Lines of JavaScript: 0
Lines of JSON: 0
Lines of Other: 0
Identifiers: 39031
Symbols: 25916
Types: 84
Instantiations: 0
Memory used: 52242K
Assignability cache size: 0
Identity cache size: 0
Subtype cache size: 0
Strict subtype cache size: 0
Tracing time: 0.00s
I/O Read time: 0.04s
Parse time: 0.14s
ResolveLibrary time: 0.01s
Program time: 0.21s
Bind time: 0.09s
I/O Write time: 0.01s
printTime time: 0.01s
Emit time: 0.01s
Dump types time: 0.01s
Total time: 0.31s
Error: Command failed: pnpm tsc --noEmit --extendedDiagnostics --incremental false --tsBuildInfoFile null --project C:\Users\moeglich\dev\attest_issue_repro\tsconfig.json --generateTrace C:\Users\moeglich\dev\attest_issue_repro.attest\trace
⏳ Analyzing type trace data for C:\Users\moeglich\dev\attest_issue_repro...
Found nothing in 1 project(s)

Activity

  1. added
    bug
    on Feb 12, 2025
  2. added a commit that references this issue on Oct 13, 2026
    99934ba
  3. ssalbdivad commented on Nov 18, 2026

    @ssalbdivad
    Member

    Fixed in 3.0.0-beta.0 (#1728). Try it with npm i arktype@next.

  4. moved this from Backlog to Done (merged or closed) in arktypeioon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

  • Status
    Done (merged or closed)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions