Files
bbdf7a24be Restore tsgo noEmit exit status semantics (#4407)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
Co-authored-by: weswigham <[email protected]>
2026-08-13 20:58:47 +00:00

8.5 KiB

currentDirectory::/home/src/projects/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/projects/project/a.ts] *new*
const a = "hello
//// [/home/src/projects/project/tsconfig.json] *new*
{
"compilerOptions": {
"incremental": false,
"declaration": false
}
}
 
tsgo -b -v --noEmit
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
a.ts:1:17 - error TS1002: Unterminated string literal.
 
1 const a = "hello
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new*
{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"errors": true,
"root": [
{
"files": [
"./a.ts"
],
"original": "./a.ts"
}
],
"size": 59
}
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };
 
tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [0]:: no change
 
tsgo -b -v --noEmit
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors.
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
a.ts:1:17 - error TS1002: Unterminated string literal.
 
1 const a = "hello
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content*
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content*
 
tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [1]:: Fix error
//// [/home/src/projects/project/a.ts] *modified*
const a = "hello";
 
tsgo -b -v --noEmit
ExitStatus:: Success
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors.
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified*
{"version":"FakeTSVersion","root":["./a.ts"]}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
{
"version": "FakeTSVersion",
"root": [
{
"files": [
"./a.ts"
],
"original": "./a.ts"
}
],
"size": 45
}
 
tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [2]:: no change
 
tsgo -b -v --noEmit
ExitStatus:: Success
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content*
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content*
 
tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [3]:: Emit after fixing error
 
tsgo -b -v
ExitStatus:: Success
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
//// [/home/src/projects/project/a.js] *new*
"use strict";
const a = "hello";
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content*
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content*
 
tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [4]:: no change
 
tsgo -b -v --noEmit
ExitStatus:: Success
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js'
 
 
 
 
Edit [5]:: Introduce error
//// [/home/src/projects/project/a.ts] *modified*
const a = "hello
 
tsgo -b -v --noEmit
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts'
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
a.ts:1:17 - error TS1002: Unterminated string literal.
 
1 const a = "hello
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified*
{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
{
"version": "FakeTSVersion",
"errors": true,
"root": [
{
"files": [
"./a.ts"
],
"original": "./a.ts"
}
],
"size": 59
}
 
tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [6]:: Emit when error
 
tsgo -b -v
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors.
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
a.ts:1:17 - error TS1002: Unterminated string literal.
 
1 const a = "hello
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/projects/project/a.js] *modified*
"use strict";
const a = "hello;
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content*
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content*
 
tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/projects/project/a.ts
Signatures::
 
 
Edit [7]:: no change
 
tsgo -b -v --noEmit
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* tsconfig.json
 
[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors.
 
[HH:MM:SS AM] Building project 'tsconfig.json'...
 
a.ts:1:17 - error TS1002: Unterminated string literal.
 
1 const a = "hello
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content*
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content*
 
tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/projects/project/a.ts
Signatures::