GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TS6059 error count flakes between runs unless --singleThreaded · Issue #64477 · microsoft/TypeScript

TS6059 error count flakes between runs unless --singleThreaded #64477

New issue
Copy link
New issue
Copy link
Open
Open
TS6059 error count flakes between runs unless --singleThreaded#64477
Copy link
Assignees
iisaduan
Labels
BugA bug in TypeScript
Milestone
TypeScript 7.1.1 RC

Description

@maschwenk
Max Schwenk (maschwenk)
opened on Sep 27, 2026
Issue body actions

🔎 Search Terms

TS6059, rootDir, flaky error count, singleThreaded

🕗 Version & Regression Information

seeing it on 7.0.2 and on main (4f5ddae). havent tried older versions

⏯ Playground Link

No response

💻 Code

repros on material-ui's docs project (the mui-docs scenario in typescript-benchmarking):

git clone https://github.com/mui/material-ui.git
cd material-ui
git checkout 190a83cf3784c53b57d7a80cf96df27276eed079
pnpm install --ignore-scripts
for i in 1 2 3 4 5 6; do
  npx -p [email protected] tsc -p docs --outDir /tmp/out --pretty false | grep -c 'error TS'
done

tried to get a small repro (tsconfig paths pointing outside rootDir, a JS barrel re-exporting TS files outside rootDir) but everything i tried was stable

🙁 Actual behavior

the error count changes between runs of the exact same command. on 7.0.2 i got 11378, 11405, 11401, 11405, 11405, 11400. almost all of them are TS6059 (File '…' is not under 'rootDir' 'docs')

with --singleThreaded its 11403 every time. --checkers 1 still flakes so i think it's coming from loading files in parallel and not from the checkers

the ones that go missing are reported inside other files that are also outside rootDir, e.g.

packages/mui-system/src/borders/index.ts(1,25): error TS6059: File 'packages/mui-system/src/borders/borders.ts' is not under 'rootDir' 'docs'. 'rootDir' is expected to contain all source files.

the "The file is in the program because:" lists also come out in a different order each run

🙂 Expected behavior

same errors every run, same as --singleThreaded

Additional information about the issue

my guess is each file only gets one TS6059, reported at whichever import got recorded first, and that depends on which files finished loading first. when that import is in a file whose errors dont get reported the error just disappears. couldnt confirm it with a small repro though so i might have the trigger wrong

found this while benchmarking #64474, used claude code to help track it down

Activity

  1. Max Schwenk (maschwenk)
    changed the title [-]TS6059 error count changes between runs unless --singleThreaded is used[/-] [+]TS6059 error count flakes between runs unless --singleThreaded[/+] on Sep 27, 2026
  2. Ryan Cavanaugh (RyanCavanaugh)
    assigned
    Isabel Duan (iisaduan)
    on Sep 29, 2026
  3. Ryan Cavanaugh (RyanCavanaugh)
    added
    BugA bug in TypeScript
    on Sep 29, 2026
  4. Ryan Cavanaugh (RyanCavanaugh)
    added this to the TypeScript 7.1.1 RC milestone on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @iisaduan
    Isabel Duan (iisaduan)

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

    Milestone

    • TypeScript 7.1.1 RCNo due date

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.