|
| 1 | +Input:: |
| 2 | +//// [/user/username/projects/myproject/tsconfig.json] |
| 3 | +{"compilerOptions":{"traceResolution":true,"extendedDiagnostics":true},"files":["main.ts"]} |
| 4 | + |
| 5 | +//// [/user/username/projects/myproject/main.ts] |
| 6 | +import { foo } from "./other"; |
| 7 | + |
| 8 | +//// [/user/username/projects/myproject/other.d.ts] |
| 9 | +export function foo(): void; |
| 10 | + |
| 11 | +//// [/a/lib/lib.d.ts] |
| 12 | +/// <reference no-default-lib="true"/> |
| 13 | +interface Boolean {} |
| 14 | +interface Function {} |
| 15 | +interface CallableFunction {} |
| 16 | +interface NewableFunction {} |
| 17 | +interface IArguments {} |
| 18 | +interface Number { toExponential: any; } |
| 19 | +interface Object {} |
| 20 | +interface RegExp {} |
| 21 | +interface String { charAt: any; } |
| 22 | +interface Array<T> { length: number; [n: number]: T; } |
| 23 | + |
| 24 | + |
| 25 | +/a/lib/tsc.js --w |
| 26 | +Output:: |
| 27 | +>> Screen clear |
| 28 | +[[90m12:00:23 AM[0m] Starting compilation in watch mode... |
| 29 | + |
| 30 | +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false |
| 31 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file |
| 32 | +Synchronizing program |
| 33 | +CreatingProgramWith:: |
| 34 | + roots: ["/user/username/projects/myproject/main.ts"] |
| 35 | + options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 36 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file |
| 37 | +======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== |
| 38 | +Module resolution kind is not specified, using 'NodeJs'. |
| 39 | +Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file type 'TypeScript'. |
| 40 | +File '/user/username/projects/myproject/other.ts' does not exist. |
| 41 | +File '/user/username/projects/myproject/other.tsx' does not exist. |
| 42 | +File '/user/username/projects/myproject/other.d.ts' exist - use it as a name resolution result. |
| 43 | +======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== |
| 44 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file |
| 45 | +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file |
| 46 | +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots |
| 47 | +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots |
| 48 | +[[90m12:00:26 AM[0m] Found 0 errors. Watching for file changes. |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +Program root files: ["/user/username/projects/myproject/main.ts"] |
| 53 | +Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 54 | +Program structureReused: Not |
| 55 | +Program files:: |
| 56 | +/a/lib/lib.d.ts |
| 57 | +/user/username/projects/myproject/other.d.ts |
| 58 | +/user/username/projects/myproject/main.ts |
| 59 | + |
| 60 | +Semantic diagnostics in builder refreshed for:: |
| 61 | +/a/lib/lib.d.ts |
| 62 | +/user/username/projects/myproject/other.d.ts |
| 63 | +/user/username/projects/myproject/main.ts |
| 64 | + |
| 65 | +Shape signatures in builder refreshed for:: |
| 66 | +/a/lib/lib.d.ts (used version) |
| 67 | +/user/username/projects/myproject/other.d.ts (used version) |
| 68 | +/user/username/projects/myproject/main.ts (used version) |
| 69 | + |
| 70 | +PolledWatches:: |
| 71 | +/user/username/projects/myproject/node_modules/@types: |
| 72 | + {"pollingInterval":500} |
| 73 | + |
| 74 | +FsWatches:: |
| 75 | +/user/username/projects/myproject/tsconfig.json: |
| 76 | + {} |
| 77 | +/user/username/projects/myproject/main.ts: |
| 78 | + {} |
| 79 | +/user/username/projects/myproject/other.d.ts: |
| 80 | + {} |
| 81 | +/a/lib/lib.d.ts: |
| 82 | + {} |
| 83 | + |
| 84 | +FsWatchesRecursive:: |
| 85 | + |
| 86 | +exitCode:: ExitStatus.undefined |
| 87 | + |
| 88 | +//// [/user/username/projects/myproject/main.js] |
| 89 | +"use strict"; |
| 90 | +exports.__esModule = true; |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +Change:: write other with same contents |
| 95 | + |
| 96 | +Input:: |
| 97 | +//// [/user/username/projects/myproject/other.d.ts] file changed its modified time |
| 98 | + |
| 99 | +Output:: |
| 100 | +FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file |
| 101 | +Scheduling update |
| 102 | +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 |
| 103 | +Synchronizing program |
| 104 | +[[90m12:00:29 AM[0m] File change detected. Starting incremental compilation... |
| 105 | + |
| 106 | +CreatingProgramWith:: |
| 107 | + roots: ["/user/username/projects/myproject/main.ts"] |
| 108 | + options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 109 | +======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== |
| 110 | +Module resolution kind is not specified, using 'NodeJs'. |
| 111 | +Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file type 'TypeScript'. |
| 112 | +File '/user/username/projects/myproject/other.ts' does not exist. |
| 113 | +File '/user/username/projects/myproject/other.tsx' does not exist. |
| 114 | +File '/user/username/projects/myproject/other.d.ts' exist - use it as a name resolution result. |
| 115 | +======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== |
| 116 | +[[90m12:00:30 AM[0m] Found 0 errors. Watching for file changes. |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | +Program root files: ["/user/username/projects/myproject/main.ts"] |
| 121 | +Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 122 | +Program structureReused: SafeModules |
| 123 | +Program files:: |
| 124 | +/a/lib/lib.d.ts |
| 125 | +/user/username/projects/myproject/other.d.ts |
| 126 | +/user/username/projects/myproject/main.ts |
| 127 | + |
| 128 | +Semantic diagnostics in builder refreshed for:: |
| 129 | + |
| 130 | +No shapes updated in the builder:: |
| 131 | + |
| 132 | +PolledWatches:: |
| 133 | +/user/username/projects/myproject/node_modules/@types: |
| 134 | + {"pollingInterval":500} |
| 135 | + |
| 136 | +FsWatches:: |
| 137 | +/user/username/projects/myproject/tsconfig.json: |
| 138 | + {} |
| 139 | +/user/username/projects/myproject/main.ts: |
| 140 | + {} |
| 141 | +/user/username/projects/myproject/other.d.ts: |
| 142 | + {} |
| 143 | +/a/lib/lib.d.ts: |
| 144 | + {} |
| 145 | + |
| 146 | +FsWatchesRecursive:: |
| 147 | + |
| 148 | +exitCode:: ExitStatus.undefined |
| 149 | + |
| 150 | + |
| 151 | +Change:: change other file |
| 152 | + |
| 153 | +Input:: |
| 154 | +//// [/user/username/projects/myproject/other.d.ts] |
| 155 | +export function foo(): void;export function bar(): void; |
| 156 | + |
| 157 | + |
| 158 | +Output:: |
| 159 | +FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file |
| 160 | +Scheduling update |
| 161 | +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 |
| 162 | +Synchronizing program |
| 163 | +[[90m12:00:33 AM[0m] File change detected. Starting incremental compilation... |
| 164 | + |
| 165 | +CreatingProgramWith:: |
| 166 | + roots: ["/user/username/projects/myproject/main.ts"] |
| 167 | + options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 168 | +======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== |
| 169 | +Module resolution kind is not specified, using 'NodeJs'. |
| 170 | +Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file type 'TypeScript'. |
| 171 | +File '/user/username/projects/myproject/other.ts' does not exist. |
| 172 | +File '/user/username/projects/myproject/other.tsx' does not exist. |
| 173 | +File '/user/username/projects/myproject/other.d.ts' exist - use it as a name resolution result. |
| 174 | +======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== |
| 175 | +[[90m12:00:37 AM[0m] Found 0 errors. Watching for file changes. |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | +Program root files: ["/user/username/projects/myproject/main.ts"] |
| 180 | +Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 181 | +Program structureReused: SafeModules |
| 182 | +Program files:: |
| 183 | +/a/lib/lib.d.ts |
| 184 | +/user/username/projects/myproject/other.d.ts |
| 185 | +/user/username/projects/myproject/main.ts |
| 186 | + |
| 187 | +Semantic diagnostics in builder refreshed for:: |
| 188 | +/user/username/projects/myproject/other.d.ts |
| 189 | +/user/username/projects/myproject/main.ts |
| 190 | + |
| 191 | +Shape signatures in builder refreshed for:: |
| 192 | +/user/username/projects/myproject/other.d.ts (used version) |
| 193 | +/user/username/projects/myproject/main.ts (computed .d.ts) |
| 194 | + |
| 195 | +PolledWatches:: |
| 196 | +/user/username/projects/myproject/node_modules/@types: |
| 197 | + {"pollingInterval":500} |
| 198 | + |
| 199 | +FsWatches:: |
| 200 | +/user/username/projects/myproject/tsconfig.json: |
| 201 | + {} |
| 202 | +/user/username/projects/myproject/main.ts: |
| 203 | + {} |
| 204 | +/user/username/projects/myproject/other.d.ts: |
| 205 | + {} |
| 206 | +/a/lib/lib.d.ts: |
| 207 | + {} |
| 208 | + |
| 209 | +FsWatchesRecursive:: |
| 210 | + |
| 211 | +exitCode:: ExitStatus.undefined |
| 212 | + |
| 213 | +//// [/user/username/projects/myproject/main.js] file written with same contents |
| 214 | + |
| 215 | +Change:: write other with same contents but write ts file |
| 216 | + |
| 217 | +Input:: |
| 218 | +//// [/user/username/projects/myproject/other.d.ts] file changed its modified time |
| 219 | +//// [/user/username/projects/myproject/other.ts] |
| 220 | +export function foo() {} |
| 221 | + |
| 222 | + |
| 223 | +Output:: |
| 224 | +FileWatcher:: Triggered with /user/username/projects/myproject/other.d.ts 1:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file |
| 225 | +Scheduling update |
| 226 | +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 |
| 227 | +Synchronizing program |
| 228 | +[[90m12:00:42 AM[0m] File change detected. Starting incremental compilation... |
| 229 | + |
| 230 | +CreatingProgramWith:: |
| 231 | + roots: ["/user/username/projects/myproject/main.ts"] |
| 232 | + options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 233 | +======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== |
| 234 | +Module resolution kind is not specified, using 'NodeJs'. |
| 235 | +Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file type 'TypeScript'. |
| 236 | +File '/user/username/projects/myproject/other.ts' exist - use it as a name resolution result. |
| 237 | +======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.ts'. ======== |
| 238 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 undefined Source file |
| 239 | +[[90m12:00:48 AM[0m] Found 0 errors. Watching for file changes. |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | +Program root files: ["/user/username/projects/myproject/main.ts"] |
| 244 | +Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 245 | +Program structureReused: SafeModules |
| 246 | +Program files:: |
| 247 | +/a/lib/lib.d.ts |
| 248 | +/user/username/projects/myproject/other.ts |
| 249 | +/user/username/projects/myproject/main.ts |
| 250 | + |
| 251 | +Semantic diagnostics in builder refreshed for:: |
| 252 | +/user/username/projects/myproject/other.ts |
| 253 | +/user/username/projects/myproject/main.ts |
| 254 | + |
| 255 | +Shape signatures in builder refreshed for:: |
| 256 | +/user/username/projects/myproject/other.ts (computed .d.ts) |
| 257 | +/user/username/projects/myproject/main.ts (computed .d.ts) |
| 258 | + |
| 259 | +PolledWatches:: |
| 260 | +/user/username/projects/myproject/node_modules/@types: |
| 261 | + {"pollingInterval":500} |
| 262 | + |
| 263 | +FsWatches:: |
| 264 | +/user/username/projects/myproject/tsconfig.json: |
| 265 | + {} |
| 266 | +/user/username/projects/myproject/main.ts: |
| 267 | + {} |
| 268 | +/user/username/projects/myproject/other.d.ts: |
| 269 | + {} |
| 270 | +/a/lib/lib.d.ts: |
| 271 | + {} |
| 272 | +/user/username/projects/myproject/other.ts: |
| 273 | + {} |
| 274 | + |
| 275 | +FsWatchesRecursive:: |
| 276 | + |
| 277 | +exitCode:: ExitStatus.undefined |
| 278 | + |
| 279 | +//// [/user/username/projects/myproject/main.js] file written with same contents |
| 280 | +//// [/user/username/projects/myproject/other.js] |
| 281 | +"use strict"; |
| 282 | +exports.__esModule = true; |
| 283 | +exports.foo = void 0; |
| 284 | +function foo() { } |
| 285 | +exports.foo = foo; |
| 286 | + |
| 287 | + |
0 commit comments