@@ -191,10 +191,14 @@ export function* values() { yield 1; }
191191
192192
193193tsgo -- build
194- ExitStatus :: Success
194+ ExitStatus :: DiagnosticsPresent_OutputsGenerated
195195Output ::
196+ [ 91 merror [ 0 m [ 90 m TS2318 : [ 0 mCannot find global type 'IterableIterator' .
197+
198+ Found 1 error .
199+
196200//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified*
197- { "version ":"FakeTSVersion ", "errors" :true , "root ":[ 2 ] , "fileNames" :[ "lib . es2026 . full . d . ts ", ". / repro . ts "] , "fileInfos" :[ { "version" :"8859c12c614ce56ba9a18e58384a198f-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true , "impliedNodeFormat" :1 } , { "version" :"303d5119b8941b887ef975780b83caec-export function* values() { yield 1; }\n// comment-only edit\n" , "signature" :"b9f7a0d32d9887fdd864bf1c0dcd3591-export declare function values(): {};\n" , "impliedNodeFormat" :1 } ] , "affectedFilesPendingEmit" :[ 2 ] }
201+ { "version" :"FakeTSVersion" , "errors" :true , "root" :[ 2 ] , "fileNames" :[ "lib.es2026.full.d.ts" , "./repro.ts" ] , "fileInfos" :[ { "version" :"8859c12c614ce56ba9a18e58384a198f-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true , "impliedNodeFormat" :1 } , { "version" :"303d5119b8941b887ef975780b83caec-export function* values() { yield 1; }\n// comment-only edit\n" , "signature" :"b9f7a0d32d9887fdd864bf1c0dcd3591-export declare function values(): {};\n" , "impliedNodeFormat" :1 } ] , "semanticDiagnosticsPerFile" :[ [ 2 , [ { "noFile" :true , "code" :2318 , "category" :1 , "messageKey" :"Cannot_find_global_type_0_2318" , "messageArgs" :[ "IterableIterator" ] } ] ] ] , "affectedFilesPendingEmit" :[ 2 ] }
198202//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
199203{
200204 "version" : "FakeTSVersion" ,
@@ -236,14 +240,30 @@ Output::
236240 }
237241 }
238242 ] ,
243+ "semanticDiagnosticsPerFile" : [
244+ [
245+ "./repro.ts" ,
246+ [
247+ {
248+ "noFile" : true ,
249+ "code" : 2318 ,
250+ "category" : 1 ,
251+ "messageKey" : "Cannot_find_global_type_0_2318" ,
252+ "messageArgs" : [
253+ "IterableIterator"
254+ ]
255+ }
256+ ]
257+ ]
258+ ] ,
239259 "affectedFilesPendingEmit" : [
240260 [
241261 "./repro.ts" ,
242262 "Js" ,
243263 2
244264 ]
245265 ] ,
246- "size" : 1136
266+ "size" : 1295
247267}
248268
249269tsconfig . json ::
@@ -253,22 +273,17 @@ Signatures::
253273( computed . d . ts ) / home / src / workspaces / project / repro . ts
254274
255275
256- Diff:: Signature generation produces the missing - global diagnostic before semantic checking , so the build loses it .
257- -- - nonIncremental . output . txt
258- ++ + incremental . output . txt
259- @@ - 1 , 4 + 0 , 0 @@
260- - [ 91 merror [ 0 m [ 90 m TS2318 : [ 0 mCannot find global type 'IterableIterator' .
261- -
262- - Found 1 error .
263- -
264-
265276Edit [ 2 ] :: no change
266277
267278tsgo -- build
268- ExitStatus :: Success
279+ ExitStatus :: DiagnosticsPresent_OutputsGenerated
269280Output ::
281+ [ 91 merror [ 0 m [ 90 m TS2318 : [ 0 mCannot find global type 'IterableIterator' .
282+
283+ Found 1 error .
284+
270285//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified*
271- { "version" :"FakeTSVersion" , "root" :[ 2 ] , "fileNames" :[ "lib.es2026.full.d.ts" , "./repro.ts" ] , "fileInfos" :[ { "version" :"8859c12c614ce56ba9a18e58384a198f-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true , "impliedNodeFormat" :1 } , { "version" :"303d5119b8941b887ef975780b83caec-export function* values() { yield 1; }\n// comment-only edit\n" , "signature" :"b9f7a0d32d9887fdd864bf1c0dcd3591-export declare function values(): {};\n" , "impliedNodeFormat" :1 } ] , "affectedFilesPendingEmit" :[ 2 ] }
286+ { "version" :"FakeTSVersion" , "root" :[ 2 ] , "fileNames" :[ "lib.es2026.full.d.ts" , "./repro.ts" ] , "fileInfos" :[ { "version" :"8859c12c614ce56ba9a18e58384a198f-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true , "impliedNodeFormat" :1 } , { "version" :"303d5119b8941b887ef975780b83caec-export function* values() { yield 1; }\n// comment-only edit\n" , "signature" :"b9f7a0d32d9887fdd864bf1c0dcd3591-export declare function values(): {};\n" , "impliedNodeFormat" :1 } ] , "semanticDiagnosticsPerFile" :[ [ 2 , [ { "noFile" :true , "code" :2318 , "category" :1 , "messageKey" :"Cannot_find_global_type_0_2318" , "messageArgs" :[ "IterableIterator" ] } ] ] ] , "affectedFilesPendingEmit" :[ 2 ] }
272287//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
273288{
274289 "version" : "FakeTSVersion" ,
@@ -309,30 +324,37 @@ Output::
309324 }
310325 }
311326 ] ,
327+ "semanticDiagnosticsPerFile" : [
328+ [
329+ "./repro.ts" ,
330+ [
331+ {
332+ "noFile" : true ,
333+ "code" : 2318 ,
334+ "category" : 1 ,
335+ "messageKey" : "Cannot_find_global_type_0_2318" ,
336+ "messageArgs" : [
337+ "IterableIterator"
338+ ]
339+ }
340+ ]
341+ ]
342+ ] ,
312343 "affectedFilesPendingEmit" : [
313344 [
314345 "./repro.ts" ,
315346 "Js" ,
316347 2
317348 ]
318349 ] ,
319- "size" : 1122
350+ "size" : 1281
320351}
321352
322353tsconfig . json ::
323354SemanticDiagnostics ::
324355Signatures ::
325356
326357
327- Diff :: The cached semantic diagnostics do not include the missing - global diagnostic produced during signature generation .
328- -- - nonIncremental . output . txt
329- ++ + incremental . output . txt
330- @@ - 1 , 4 + 0 , 0 @@
331- - [ 91 merror [ 0 m [ 90 m TS2318 : [ 0 mCannot find global type 'IterableIterator' .
332- -
333- - Found 1 error .
334- -
335-
336358Edit [ 3 ] :: remove the generator
337359//// [/home/src/workspaces/project/repro.ts] *modified*
338360export const value = 1 ;
0 commit comments