Closed
Description
When I set compilerOptions.incremental
to true, this command fails silently with no output:
npx tsgo -p . --noEmit --extendedDiagnostics
Here's my whole tsconfig.json file:
{
"include": ["."],
"exclude": [
"node_modules",
],
"compilerOptions": {
"incremental": true,
"downlevelIteration": true,
"lib": ["es2023", "dom"],
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react-jsx",
"isolatedModules": true,
"noEmit": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"strict": true,
"target": "es2020",
"module": "esnext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"baseUrl": ".",
}
}
If I remove the incremental: true
line, the above command runs and gives diagnostic output.
Metadata
Metadata
Assignees
Labels
No labels
Activity
yue4u commentedon May 22, 2025
It took me a bit to figure out exit code 7 is defined here for
ExitStatusNotImplementedIncremental
jakebailey commentedon May 22, 2025
Yeah, we should be printing an error, or better, just ignoring the option.
LukeAbby commentedon May 22, 2025
I just ran into this too, it took me a while to realize that I needed to disable incremental.
jakebailey commentedon May 22, 2025
I'll send a PR quick that just removes this error and just runs the compilation normally.