When there is no change in file text for program, no need to update program (#51626)

* When fsEvent for change is repeated

* When trying to check if program is uptodate, read the files from disk to determine the version instead of delaying so that new program is not created if file contents have not changed
This commit is contained in:
Sheetal Nandi 2022-11-29 12:20:41 -08:00 committed by GitHub
parent af36a859b9
commit c2519bb301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 264 additions and 911 deletions

View File

@ -436,7 +436,7 @@ function createSolutionBuilderState<T extends BuilderProgram>(watch: boolean, ho
// State of the solution
const baseCompilerOptions = getCompilerOptionsOfBuildOptions(options);
const compilerHost = createCompilerHostFromProgramHost(host, () => state.projectCompilerOptions) as CompilerHost & ReadBuildProgramHost;
setGetSourceFileAsHashVersioned(compilerHost, host);
setGetSourceFileAsHashVersioned(compilerHost);
compilerHost.getParsedCommandLine = fileName => parseConfigFile(state, fileName as ResolvedConfigFileName, toResolvedConfigFilePath(state, fileName as ResolvedConfigFileName));
compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames);
compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives);

View File

@ -739,9 +739,9 @@ export function createWatchFactory<Y = undefined>(host: WatchFactoryHost & { tra
export function createCompilerHostFromProgramHost(host: ProgramHost<any>, getCompilerOptions: () => CompilerOptions, directoryStructureHost: DirectoryStructureHost = host): CompilerHost {
const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
const hostGetNewLine = memoize(() => host.getNewLine());
return {
const compilerHost: CompilerHost = {
getSourceFile: createGetSourceFile(
(fileName, encoding) => host.readFile(fileName, encoding),
(fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding),
getCompilerOptions,
/*setParentNodes*/ undefined
),
@ -768,6 +768,7 @@ export function createCompilerHostFromProgramHost(host: ProgramHost<any>, getCom
disableUseFileVersionAsSignature: host.disableUseFileVersionAsSignature,
storeFilesChangingSignatureDuringEmit: host.storeFilesChangingSignatureDuringEmit,
};
return compilerHost;
}
/** @internal */
@ -810,12 +811,12 @@ export function getSourceFileVersionAsHashFromText(host: Pick<CompilerHost, "cre
}
/** @internal */
export function setGetSourceFileAsHashVersioned(compilerHost: CompilerHost, host: { createHash?(data: string): string; }) {
export function setGetSourceFileAsHashVersioned(compilerHost: CompilerHost) {
const originalGetSourceFile = compilerHost.getSourceFile;
compilerHost.getSourceFile = (...args) => {
const result = originalGetSourceFile.call(compilerHost, ...args);
if (result) {
result.version = getSourceFileVersionAsHashFromText(host, result.text);
result.version = getSourceFileVersionAsHashFromText(compilerHost, result.text);
}
return result;
};

View File

@ -48,6 +48,7 @@ import {
getNewLineCharacter,
getNormalizedAbsolutePath,
getParsedCommandLineOfConfigFile,
getSourceFileVersionAsHashFromText,
getTsBuildInfoEmitOutputFilePath,
HasInvalidatedResolutions,
isArray,
@ -121,7 +122,7 @@ export function createIncrementalCompilerHost(options: CompilerOptions, system =
host.createHash = maybeBind(system, system.createHash);
host.disableUseFileVersionAsSignature = system.disableUseFileVersionAsSignature;
host.storeFilesChangingSignatureDuringEmit = system.storeFilesChangingSignatureDuringEmit;
setGetSourceFileAsHashVersioned(host, system);
setGetSourceFileAsHashVersioned(host);
changeCompilerHostLikeToUseCache(host, fileName => toPath(fileName, host.getCurrentDirectory(), host.getCanonicalFileName));
return host;
}
@ -429,7 +430,7 @@ export function createWatchProgram<T extends BuilderProgram>(host: WatchCompiler
}
const compilerHost = createCompilerHostFromProgramHost(host, () => compilerOptions, directoryStructureHost) as CompilerHost & ResolutionCacheHost;
setGetSourceFileAsHashVersioned(compilerHost, host);
setGetSourceFileAsHashVersioned(compilerHost);
// Members for CompilerHost
const getNewSourceFile = compilerHost.getSourceFile;
compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath(fileName), ...args);
@ -551,9 +552,9 @@ export function createWatchProgram<T extends BuilderProgram>(host: WatchCompiler
const hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);
const {
originalReadFile, originalFileExists, originalDirectoryExists,
originalCreateDirectory, originalWriteFile,
originalCreateDirectory, originalWriteFile, readFileWithCache
} = changeCompilerHostLikeToUseCache(compilerHost, toPath);
if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, fileName => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, path => getSourceVersion(path, readFileWithCache), fileName => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
if (hasChangedConfigFileParsingErrors) {
if (reportFileChangeDetectedOnCreateProgram) {
reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation);
@ -708,9 +709,13 @@ export function createWatchProgram<T extends BuilderProgram>(host: WatchCompiler
}
}
function getSourceVersion(path: Path): string | undefined {
function getSourceVersion(path: Path, readFileWithCache: (file: string) => string | undefined): string | undefined {
const hostSourceFile = sourceFilesCache.get(path);
return !hostSourceFile || !hostSourceFile.version ? undefined : hostSourceFile.version;
if (!hostSourceFile) return undefined;
if (hostSourceFile.version) return hostSourceFile.version;
// Read file and get new version
const text = readFileWithCache(path);
return text ? getSourceFileVersionAsHashFromText(compilerHost, text) : undefined;
}
function onReleaseOldSourceFile(oldSourceFile: SourceFile, _oldOptions: CompilerOptions, hasSourceFileByPath: boolean) {

View File

@ -702,4 +702,26 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po
]
});
});
verifyTscWatch({
scenario,
subScenario: "fsEvent for change is repeated",
commandLineArgs: ["-w", "main.ts", "--extendedDiagnostics"],
sys: () => createWatchedSystem({
"/user/username/projects/project/main.ts": `let a: string = "Hello"`,
[libFile.path]: libFile.content,
}, { currentDirectory: "/user/username/projects/project" }),
changes: [
{
caption: "change main.ts",
change: sys => sys.replaceFileText("/user/username/projects/project/main.ts", "Hello", "Hello World"),
timeouts: sys => sys.runQueuedTimeoutCallbacks(),
},
{
caption: "receive another change event without modifying the file",
change: sys => sys.invokeFsWatches("/user/username/projects/project/main.ts", "change", /*modifiedTime*/ undefined, /*useTildeSuffix*/ undefined),
timeouts: sys => sys.runQueuedTimeoutCallbacks(),
}
]
});
});

View File

@ -686,7 +686,7 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost,
}
}
private invokeFsWatches(fullPath: string, eventName: "rename" | "change", modifiedTime: Date | undefined, useTildeSuffix: boolean | undefined) {
invokeFsWatches(fullPath: string, eventName: "rename" | "change", modifiedTime: Date | undefined, useTildeSuffix: boolean | undefined) {
this.invokeFsWatchesCallbacks(fullPath, eventName, modifiedTime, fullPath, useTildeSuffix);
this.invokeFsWatchesCallbacks(getDirectoryPath(fullPath), eventName, modifiedTime, fullPath, useTildeSuffix);
this.invokeRecursiveFsWatches(fullPath, eventName, modifiedTime, /*entryFullPath*/ undefined, useTildeSuffix);

View File

@ -183,30 +183,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:43 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:44 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -243,9 +219,9 @@ const a = {
Output::
>> Screen clear
[12:00:48 AM] File change detected. Starting incremental compilation...
[12:00:46 AM] File change detected. Starting incremental compilation...
[12:01:06 AM] Found 0 errors. Watching for file changes.
[12:01:04 AM] Found 0 errors. Watching for file changes.
@ -382,14 +358,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:13 AM] File change detected. Starting incremental compilation...
[12:01:11 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:17 AM] Found 1 error. Watching for file changes.
[12:01:15 AM] Found 1 error. Watching for file changes.
@ -521,30 +497,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:25 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:26 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -579,9 +531,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:30 AM] File change detected. Starting incremental compilation...
[12:01:26 AM] File change detected. Starting incremental compilation...
[12:01:37 AM] Found 0 errors. Watching for file changes.
[12:01:33 AM] Found 0 errors. Watching for file changes.
@ -701,25 +653,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:44 AM] File change detected. Starting incremental compilation...
[12:01:45 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -103,30 +103,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:36 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:37 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -163,9 +139,9 @@ const a = {
Output::
>> Screen clear
[12:00:41 AM] File change detected. Starting incremental compilation...
[12:00:39 AM] File change detected. Starting incremental compilation...
[12:00:58 AM] Found 0 errors. Watching for file changes.
[12:00:56 AM] Found 0 errors. Watching for file changes.
@ -236,14 +212,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:02 AM] File change detected. Starting incremental compilation...
[12:01:00 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:03 AM] Found 1 error. Watching for file changes.
[12:01:01 AM] Found 1 error. Watching for file changes.
@ -291,30 +267,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:08 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:09 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -349,9 +301,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:13 AM] File change detected. Starting incremental compilation...
[12:01:09 AM] File change detected. Starting incremental compilation...
[12:01:17 AM] Found 0 errors. Watching for file changes.
[12:01:13 AM] Found 0 errors. Watching for file changes.
@ -405,25 +357,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:21 AM] File change detected. Starting incremental compilation...
[12:01:22 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -184,30 +184,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:43 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:44 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -244,9 +220,9 @@ const a = {
Output::
>> Screen clear
[12:00:48 AM] File change detected. Starting incremental compilation...
[12:00:46 AM] File change detected. Starting incremental compilation...
[12:01:12 AM] Found 0 errors. Watching for file changes.
[12:01:10 AM] Found 0 errors. Watching for file changes.
@ -406,14 +382,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:19 AM] File change detected. Starting incremental compilation...
[12:01:17 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:23 AM] Found 1 error. Watching for file changes.
[12:01:21 AM] Found 1 error. Watching for file changes.
@ -554,30 +530,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:31 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:32 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -612,9 +564,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:36 AM] File change detected. Starting incremental compilation...
[12:01:32 AM] File change detected. Starting incremental compilation...
[12:01:46 AM] Found 0 errors. Watching for file changes.
[12:01:42 AM] Found 0 errors. Watching for file changes.
@ -744,25 +696,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:53 AM] File change detected. Starting incremental compilation...
[12:01:54 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -103,30 +103,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:36 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:37 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -163,9 +139,9 @@ const a = {
Output::
>> Screen clear
[12:00:41 AM] File change detected. Starting incremental compilation...
[12:00:39 AM] File change detected. Starting incremental compilation...
[12:01:04 AM] Found 0 errors. Watching for file changes.
[12:01:02 AM] Found 0 errors. Watching for file changes.
@ -250,14 +226,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:08 AM] File change detected. Starting incremental compilation...
[12:01:06 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:09 AM] Found 1 error. Watching for file changes.
[12:01:07 AM] Found 1 error. Watching for file changes.
@ -305,30 +281,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:14 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:15 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -363,9 +315,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:19 AM] File change detected. Starting incremental compilation...
[12:01:15 AM] File change detected. Starting incremental compilation...
[12:01:26 AM] Found 0 errors. Watching for file changes.
[12:01:22 AM] Found 0 errors. Watching for file changes.
@ -420,25 +372,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:30 AM] File change detected. Starting incremental compilation...
[12:01:31 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -182,30 +182,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:43 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:44 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -242,9 +218,9 @@ const a = {
Output::
>> Screen clear
[12:00:48 AM] File change detected. Starting incremental compilation...
[12:00:46 AM] File change detected. Starting incremental compilation...
[12:01:06 AM] Found 0 errors. Watching for file changes.
[12:01:04 AM] Found 0 errors. Watching for file changes.
@ -380,14 +356,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:13 AM] File change detected. Starting incremental compilation...
[12:01:11 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:17 AM] Found 1 error. Watching for file changes.
[12:01:15 AM] Found 1 error. Watching for file changes.
@ -518,30 +494,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:25 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:26 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -576,9 +528,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:30 AM] File change detected. Starting incremental compilation...
[12:01:26 AM] File change detected. Starting incremental compilation...
[12:01:37 AM] Found 0 errors. Watching for file changes.
[12:01:33 AM] Found 0 errors. Watching for file changes.
@ -697,25 +649,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:44 AM] File change detected. Starting incremental compilation...
[12:01:45 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -103,30 +103,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:36 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:37 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -163,9 +139,9 @@ const a = {
Output::
>> Screen clear
[12:00:41 AM] File change detected. Starting incremental compilation...
[12:00:39 AM] File change detected. Starting incremental compilation...
[12:00:58 AM] Found 0 errors. Watching for file changes.
[12:00:56 AM] Found 0 errors. Watching for file changes.
@ -236,14 +212,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:02 AM] File change detected. Starting incremental compilation...
[12:01:00 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:03 AM] Found 1 error. Watching for file changes.
[12:01:01 AM] Found 1 error. Watching for file changes.
@ -291,30 +267,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:08 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:09 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -349,9 +301,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:13 AM] File change detected. Starting incremental compilation...
[12:01:09 AM] File change detected. Starting incremental compilation...
[12:01:17 AM] Found 0 errors. Watching for file changes.
[12:01:13 AM] Found 0 errors. Watching for file changes.
@ -405,25 +357,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:21 AM] File change detected. Starting incremental compilation...
[12:01:22 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -183,30 +183,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:43 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:44 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -243,9 +219,9 @@ const a = {
Output::
>> Screen clear
[12:00:48 AM] File change detected. Starting incremental compilation...
[12:00:46 AM] File change detected. Starting incremental compilation...
[12:01:12 AM] Found 0 errors. Watching for file changes.
[12:01:10 AM] Found 0 errors. Watching for file changes.
@ -404,14 +380,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:19 AM] File change detected. Starting incremental compilation...
[12:01:17 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:23 AM] Found 1 error. Watching for file changes.
[12:01:21 AM] Found 1 error. Watching for file changes.
@ -551,30 +527,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:31 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:32 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -609,9 +561,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:36 AM] File change detected. Starting incremental compilation...
[12:01:32 AM] File change detected. Starting incremental compilation...
[12:01:46 AM] Found 0 errors. Watching for file changes.
[12:01:42 AM] Found 0 errors. Watching for file changes.
@ -740,25 +692,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:53 AM] File change detected. Starting incremental compilation...
[12:01:54 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -103,30 +103,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:36 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:37 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -163,9 +139,9 @@ const a = {
Output::
>> Screen clear
[12:00:41 AM] File change detected. Starting incremental compilation...
[12:00:39 AM] File change detected. Starting incremental compilation...
[12:01:04 AM] Found 0 errors. Watching for file changes.
[12:01:02 AM] Found 0 errors. Watching for file changes.
@ -250,14 +226,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:08 AM] File change detected. Starting incremental compilation...
[12:01:06 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:09 AM] Found 1 error. Watching for file changes.
[12:01:07 AM] Found 1 error. Watching for file changes.
@ -305,30 +281,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:14 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:15 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -363,9 +315,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:19 AM] File change detected. Starting incremental compilation...
[12:01:15 AM] File change detected. Starting incremental compilation...
[12:01:26 AM] Found 0 errors. Watching for file changes.
[12:01:22 AM] Found 0 errors. Watching for file changes.
@ -420,25 +372,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:30 AM] File change detected. Starting incremental compilation...
[12:01:31 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -182,30 +182,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:43 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:44 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -242,9 +218,9 @@ const a = {
Output::
>> Screen clear
[12:00:48 AM] File change detected. Starting incremental compilation...
[12:00:46 AM] File change detected. Starting incremental compilation...
[12:01:06 AM] Found 0 errors. Watching for file changes.
[12:01:04 AM] Found 0 errors. Watching for file changes.
@ -380,14 +356,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:13 AM] File change detected. Starting incremental compilation...
[12:01:11 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:17 AM] Found 1 error. Watching for file changes.
[12:01:15 AM] Found 1 error. Watching for file changes.
@ -518,30 +494,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:25 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:26 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -576,9 +528,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:30 AM] File change detected. Starting incremental compilation...
[12:01:26 AM] File change detected. Starting incremental compilation...
[12:01:37 AM] Found 0 errors. Watching for file changes.
[12:01:33 AM] Found 0 errors. Watching for file changes.
@ -697,25 +649,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:44 AM] File change detected. Starting incremental compilation...
[12:01:45 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -103,30 +103,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:36 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:37 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -163,9 +139,9 @@ const a = {
Output::
>> Screen clear
[12:00:41 AM] File change detected. Starting incremental compilation...
[12:00:39 AM] File change detected. Starting incremental compilation...
[12:00:58 AM] Found 0 errors. Watching for file changes.
[12:00:56 AM] Found 0 errors. Watching for file changes.
@ -236,14 +212,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:02 AM] File change detected. Starting incremental compilation...
[12:01:00 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:03 AM] Found 1 error. Watching for file changes.
[12:01:01 AM] Found 1 error. Watching for file changes.
@ -291,30 +267,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:08 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:09 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -349,9 +301,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:13 AM] File change detected. Starting incremental compilation...
[12:01:09 AM] File change detected. Starting incremental compilation...
[12:01:17 AM] Found 0 errors. Watching for file changes.
[12:01:13 AM] Found 0 errors. Watching for file changes.
@ -405,25 +357,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:21 AM] File change detected. Starting incremental compilation...
[12:01:22 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -183,30 +183,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:43 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:44 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -243,9 +219,9 @@ const a = {
Output::
>> Screen clear
[12:00:48 AM] File change detected. Starting incremental compilation...
[12:00:46 AM] File change detected. Starting incremental compilation...
[12:01:12 AM] Found 0 errors. Watching for file changes.
[12:01:10 AM] Found 0 errors. Watching for file changes.
@ -404,14 +380,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:19 AM] File change detected. Starting incremental compilation...
[12:01:17 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:23 AM] Found 1 error. Watching for file changes.
[12:01:21 AM] Found 1 error. Watching for file changes.
@ -551,30 +527,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:31 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:32 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -609,9 +561,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:36 AM] File change detected. Starting incremental compilation...
[12:01:32 AM] File change detected. Starting incremental compilation...
[12:01:46 AM] Found 0 errors. Watching for file changes.
[12:01:42 AM] Found 0 errors. Watching for file changes.
@ -740,25 +692,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:53 AM] File change detected. Starting incremental compilation...
[12:01:54 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -103,30 +103,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:00:36 AM] File change detected. Starting incremental compilation...
src/main.ts:4:1 - error TS1005: ',' expected.
4 ;
  ~
[12:00:37 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -163,9 +139,9 @@ const a = {
Output::
>> Screen clear
[12:00:41 AM] File change detected. Starting incremental compilation...
[12:00:39 AM] File change detected. Starting incremental compilation...
[12:01:04 AM] Found 0 errors. Watching for file changes.
[12:01:02 AM] Found 0 errors. Watching for file changes.
@ -250,14 +226,14 @@ const a: string = 10;
Output::
>> Screen clear
[12:01:08 AM] File change detected. Starting incremental compilation...
[12:01:06 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:09 AM] Found 1 error. Watching for file changes.
[12:01:07 AM] Found 1 error. Watching for file changes.
@ -305,30 +281,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:14 AM] File change detected. Starting incremental compilation...
src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'.
2 const a: string = 10;
   ~
[12:01:15 AM] Found 1 error. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:
@ -363,9 +315,9 @@ const a: string = "hello";
Output::
>> Screen clear
[12:01:19 AM] File change detected. Starting incremental compilation...
[12:01:15 AM] File change detected. Starting incremental compilation...
[12:01:26 AM] Found 0 errors. Watching for file changes.
[12:01:22 AM] Found 0 errors. Watching for file changes.
@ -420,25 +372,6 @@ Input::
//// [/user/username/projects/noEmitOnError/src/main.ts] file written with same contents
Output::
>> Screen clear
[12:01:30 AM] File change detected. Starting incremental compilation...
[12:01:31 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"]
Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/noEmitOnError/shared/types/db.ts
/user/username/projects/noEmitOnError/src/main.ts
/user/username/projects/noEmitOnError/src/other.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/noemitonerror/node_modules/@types:

View File

@ -101,27 +101,8 @@ FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: Wa
Scheduling update
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file
Synchronizing program
[12:00:29 AM] File change detected. Starting incremental compilation...
CreatingProgramWith::
roots: ["/user/username/projects/myproject/main.ts"]
options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
[12:00:30 AM] Found 0 errors. Watching for file changes.
Program root files: ["/user/username/projects/myproject/main.ts"]
Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
/user/username/projects/myproject/other.d.ts
/user/username/projects/myproject/main.ts
Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
PolledWatches::
/user/username/projects/myproject/node_modules/@types:
{"pollingInterval":500}
@ -153,12 +134,12 @@ FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: Wa
Scheduling update
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file
Synchronizing program
[12:00:33 AM] File change detected. Starting incremental compilation...
[12:00:31 AM] File change detected. Starting incremental compilation...
CreatingProgramWith::
roots: ["/user/username/projects/myproject/main.ts"]
options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
[12:00:37 AM] Found 0 errors. Watching for file changes.
[12:00:35 AM] Found 0 errors. Watching for file changes.
@ -211,7 +192,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: Wa
Scheduling update
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file
Synchronizing program
[12:00:42 AM] File change detected. Starting incremental compilation...
[12:00:40 AM] File change detected. Starting incremental compilation...
CreatingProgramWith::
roots: ["/user/username/projects/myproject/main.ts"]
@ -222,7 +203,7 @@ Loading module as file / folder, candidate module location '/user/username/proje
File '/user/username/projects/myproject/other.ts' exist - use it as a name resolution result.
======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.ts'. ========
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 undefined Source file
[12:00:48 AM] Found 0 errors. Watching for file changes.
[12:00:46 AM] Found 0 errors. Watching for file changes.

View File

@ -0,0 +1,148 @@
Input::
//// [/user/username/projects/project/main.ts]
let a: string = "Hello"
//// [/a/lib/lib.d.ts]
/// <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; }
/a/lib/tsc.js -w main.ts --extendedDiagnostics
Output::
[12:00:19 AM] Starting compilation in watch mode...
Current directory: /user/username/projects/project CaseSensitiveFileNames: false
Synchronizing program
CreatingProgramWith::
roots: ["main.ts"]
options: {"watch":true,"extendedDiagnostics":true}
FileWatcher:: Added:: WatchInfo: main.ts 250 undefined Source file
FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Type roots
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Type roots
[12:00:22 AM] Found 0 errors. Watching for file changes.
Program root files: ["main.ts"]
Program options: {"watch":true,"extendedDiagnostics":true}
Program structureReused: Not
Program files::
/a/lib/lib.d.ts
main.ts
Semantic diagnostics in builder refreshed for::
/a/lib/lib.d.ts
main.ts
Shape signatures in builder refreshed for::
/a/lib/lib.d.ts (used version)
/user/username/projects/project/main.ts (used version)
PolledWatches::
/user/username/projects/project/node_modules/@types:
{"pollingInterval":500}
FsWatches::
/user/username/projects/project/main.ts:
{}
/a/lib/lib.d.ts:
{}
FsWatchesRecursive::
exitCode:: ExitStatus.undefined
//// [/user/username/projects/project/main.js]
var a = "Hello";
Change:: change main.ts
Input::
//// [/user/username/projects/project/main.ts]
let a: string = "Hello World"
Output::
FileWatcher:: Triggered with main.ts 1:: WatchInfo: main.ts 250 undefined Source file
Scheduling update
Elapsed:: *ms FileWatcher:: Triggered with main.ts 1:: WatchInfo: main.ts 250 undefined Source file
Synchronizing program
[12:00:26 AM] File change detected. Starting incremental compilation...
CreatingProgramWith::
roots: ["main.ts"]
options: {"watch":true,"extendedDiagnostics":true}
[12:00:30 AM] Found 0 errors. Watching for file changes.
Program root files: ["main.ts"]
Program options: {"watch":true,"extendedDiagnostics":true}
Program structureReused: Completely
Program files::
/a/lib/lib.d.ts
main.ts
Semantic diagnostics in builder refreshed for::
/a/lib/lib.d.ts
main.ts
Shape signatures in builder refreshed for::
/user/username/projects/project/main.ts (computed .d.ts)
PolledWatches::
/user/username/projects/project/node_modules/@types:
{"pollingInterval":500}
FsWatches::
/user/username/projects/project/main.ts:
{}
/a/lib/lib.d.ts:
{}
FsWatchesRecursive::
exitCode:: ExitStatus.undefined
//// [/user/username/projects/project/main.js]
var a = "Hello World";
Change:: receive another change event without modifying the file
Input::
Output::
FileWatcher:: Triggered with main.ts 1:: WatchInfo: main.ts 250 undefined Source file
Scheduling update
Elapsed:: *ms FileWatcher:: Triggered with main.ts 1:: WatchInfo: main.ts 250 undefined Source file
Synchronizing program
PolledWatches::
/user/username/projects/project/node_modules/@types:
{"pollingInterval":500}
FsWatches::
/user/username/projects/project/main.ts:
{}
/a/lib/lib.d.ts:
{}
FsWatchesRecursive::
exitCode:: ExitStatus.undefined