mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
3.0 KiB
3.0 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 --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
//// [/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; };
Edit [0]:: no change
tsgo --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
Edit [1]:: Fix error
//// [/home/src/projects/project/a.ts] *modified*
const a = "hello";
tsgo --noEmit
ExitStatus:: Success
Output::
Edit [2]:: no change
tsgo --noEmit
ExitStatus:: Success
Output::
Edit [3]:: Emit after fixing error
tsgo
ExitStatus:: Success
Output::
//// [/home/src/projects/project/a.js] *new*
"use strict";
const a = "hello";
Edit [4]:: no change
tsgo --noEmit
ExitStatus:: Success
Output::
Edit [5]:: Introduce error
//// [/home/src/projects/project/a.ts] *modified*
const a = "hello
tsgo --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
Edit [6]:: Emit when error
tsgo
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
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;
Edit [7]:: no change
tsgo --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
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 --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
//// [/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; };
Edit [0]:: no change
tsgo --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
Edit [1]:: Fix error
//// [/home/src/projects/project/a.ts] *modified*
const a = "hello";
tsgo --noEmit
ExitStatus:: Success
Output::
Edit [2]:: no change
tsgo --noEmit
ExitStatus:: Success
Output::
Edit [3]:: Emit after fixing error
tsgo
ExitStatus:: Success
Output::
//// [/home/src/projects/project/a.js] *new*
"use strict";
const a = "hello";
Edit [4]:: no change
tsgo --noEmit
ExitStatus:: Success
Output::
Edit [5]:: Introduce error
//// [/home/src/projects/project/a.ts] *modified*
const a = "hello
tsgo --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1
Edit [6]:: Emit when error
tsgo
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
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;
Edit [7]:: no change
tsgo --noEmit
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:17 - error TS1002: Unterminated string literal.
1 const a = "hello
~
Found 1 error in a.ts:1