arktype icon indicating copy to clipboard operation
arktype copied to clipboard

Attest trace fails on `composite` typescript projects

Open JeremyMoeglich opened this issue 1 year ago • 0 comments

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)

JeremyMoeglich avatar Feb 12 '25 13:02 JeremyMoeglich