Repository navigation
Debug failure in ProjectService.updateNonInferredProjectFiles #36200
Description
Issue Type: Bug
I just did a fresh install of insiders and got the same bug I had on 1.41.1.
Insiders came with built in 3.7.3 TypeScript, so I used the dev extension which brought it up to 3.8.0.dev.20200114... still the exact same error.
Simply make TS the default language "files.defaultLanguage": "typescript",, press ctrl-n and start typing. I get the error every time without fail.
I get the same error whatever directory I start VS Code in, I can use 'code-insiders .` in a completely empty directory and get the same thing.
NOTE: I made a reference to this issue from my last issue with the same error message, but it could well be a totally different error. Can't seem to delete that reference, so ignore it if you like.
/home/david/.config/Code - Insiders/logs/20200115T124241/exthost1/vscode.typescript-language-features/tsserver-log-Tiv43m/tsserver.log
Info 0 [12:49:37.468] Starting TS Server
Info 1 [12:49:37.468] Version: 3.8.0-dev.20200114
Info 2 [12:49:37.468] Arguments: /usr/share/code-insiders/code-insiders /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/5d49faa236da39232028/tscancellation-13aaea537c1917025803.tmp* --logVerbosity verbose --logFile /home/david/.config/Code - Insiders/logs/20200115T124241/exthost1/vscode.typescript-language-features/tsserver-log-Tiv43m/tsserver.log --globalPlugins typescript-vscode-sh-plugin --pluginProbeLocations /usr/share/code-insiders/resources/app/extensions/typescript-language-features --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [12:49:37.468] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [12:49:37.470] Binding...
Info 5 [12:49:37.475] request:
{"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6 [12:49:37.476] Host information vscode
Info 7 [12:49:37.476] response:
{"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8 [12:49:37.476] 0::configure: async elapsed time (in milliseconds) 1.1456
Info 9 [12:49:37.477] request:
{"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","sourceMap":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10 [12:49:37.477] Scheduled: *ensureProjectForOpenFiles*
Perf 11 [12:49:37.477] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.7846
Info 12 [12:49:37.477] response:
{"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13 [12:49:37.477] request:
{"seq":2,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 14 [12:49:37.478] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}}
Perf 15 [12:49:37.478] 2::geterr: async elapsed time (in milliseconds) 0.7049
Info 16 [12:49:37.479] event:
{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":14228}}
Info 17 [12:49:37.727] Running: *ensureProjectForOpenFiles*
Info 18 [12:49:37.728] Structure before ensureProjectForOpenFiles:
Info 19 [12:49:37.728] Open files:
Info 19 [12:49:37.728] Structure after ensureProjectForOpenFiles:
Info 20 [12:49:37.728] Open files:
Info 20 [12:49:37.728] got projects updated in background, updating diagnostics for
Info 21 [12:49:39.963] request:
{"seq":3,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 22 [12:49:39.963] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}}
Perf 23 [12:49:39.964] 3::geterr: async elapsed time (in milliseconds) 0.6345
and another log:
Info 0 [12:43:51.833] Starting TS Server
Info 1 [12:43:51.833] Version: 3.8.0-dev.20200114
Info 2 [12:43:51.833] Arguments: /usr/share/code-insiders/code-insiders /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/5d49faa236da39232028/tscancellation-891d4a7f9f8b1fc227c9.tmp* --logVerbosity verbose --logFile /home/david/.config/Code - Insiders/logs/20200115T124241/exthost1/vscode.typescript-language-features/tsserver-log-ScSpTr/tsserver.log --globalPlugins typescript-vscode-sh-plugin --pluginProbeLocations /usr/share/code-insiders/resources/app/extensions/typescript-language-features --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [12:43:51.833] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [12:43:51.835] Binding...
Info 5 [12:43:51.841] request:
{"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6 [12:43:51.841] Host information vscode
Info 7 [12:43:51.842] response:
{"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8 [12:43:51.842] 0::configure: async elapsed time (in milliseconds) 1.4776
Info 9 [12:43:51.842] request:
{"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","sourceMap":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10 [12:43:51.843] Scheduled: *ensureProjectForOpenFiles*
Perf 11 [12:43:51.843] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.6915
Info 12 [12:43:51.843] response:
{"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13 [12:43:51.843] request:
{"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"cons","projectRootPath":"/home/david/sites/TypeScript/automatic-eslint-rule-collection-generator-GITHUB","scriptKindName":"TS"}]}}
Info 14 [12:43:51.845] Search path:
Info 15 [12:43:51.845] ConfigFilePresence:: Current Watches: :: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: OtherOpenFiles: untitled:^Untitled-1 Status: File added to open files impacted by this config file
Info 16 [12:43:51.846] For info: untitled:^Untitled-1 :: Config file name: tsconfig.json
Info 17 [12:43:51.846] Opened configuration file tsconfig.json
Info 18 [12:43:51.848] FileWatcher:: Added:: WatchInfo: tsconfig.json 2000 undefined Project: tsconfig.json WatchType: Config file
Info 19 [12:43:51.849] event:
{"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"tsconfig.json","reason":"Creating possible configured project for untitled:^Untitled-1 to open"}}
Info 20 [12:43:51.862] Config: tsconfig.json : {
"rootNames": [
"lib.deno_runtime.d.ts",
"old-code/unused-code.ts",
"src/calculate.ts",
"src/deps.ts",
"src/rulesToRemove.ts",
"src/view.ts",
"test/test_test.ts"
],
"options": {
"target": 6,
"module": 99,
"strict": true,
"moduleResolution": 2,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"configFilePath": "tsconfig.json"
}
}
Info 21 [12:43:51.863] Loading global plugin typescript-vscode-sh-plugin
Info 22 [12:43:51.863] Enabling plugin typescript-vscode-sh-plugin from candidate paths: /usr/share/code-insiders/resources/app/extensions/typescript-language-features,/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js/../../..
Info 23 [12:43:51.863] Loading typescript-vscode-sh-plugin from /usr/share/code-insiders/resources/app/extensions/typescript-language-features (resolved to /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules)
Info 24 [12:43:51.881] Loading typescript-vscode-sh-plugin from /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js/../../.. (resolved to /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/node_modules)
Info 25 [12:43:51.888] Failed to load module 'typescript-vscode-sh-plugin' from /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules: Error: Could not resolve JS module 'typescript-vscode-sh-plugin' starting at '/usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules'. Looked in: /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules/typescript-vscode-sh-plugin/package.json, /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules/typescript-vscode-sh-plugin.js, /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules/typescript-vscode-sh-plugin.jsx, /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules/typescript-vscode-sh-plugin/index.js, /usr/share/code-insiders/resources/app/extensions/typescript-language-features/node_modules/typescript-vscode-sh-plugin/index.jsx, /usr/share/code-insiders/resources/app/extensions/node_modules/typescript-vscode-sh-plugin/package.json, /usr/share/code-insiders/resources/app/extensions/node_modules/typescript-vscode-sh-plugin.js, /usr/share/code-insiders/resources/app/extensions/node_modules/typescript-vscode-sh-plugin.jsx, /usr/share/code-insiders/resources/app/extensions/node_modules/typescript-vscode-sh-plugin/index.js, /usr/share/code-insiders/resources/app/extensions/node_modules/typescript-vscode-sh-plugin/index.jsx, /usr/share/code-insiders/resources/app/node_modules/typescript-vscode-sh-plugin/package.json, /usr/share/code-insiders/resources/app/node_modules/typescript-vscode-sh-plugin.js, /usr/share/code-insiders/resources/app/node_modules/typescript-vscode-sh-plugin.jsx, /usr/share/code-insiders/resources/app/node_modules/typescript-vscode-sh-plugin/index.js, /usr/share/code-insiders/resources/app/node_modules/typescript-vscode-sh-plugin/index.jsx, /usr/share/code-insiders/resources/node_modules/typescript-vscode-sh-plugin/package.json, /usr/share/code-insiders/resources/node_modules/typescript-vscode-sh-plugin.js, /usr/share/code-insiders/resources/node_modules/typescript-vscode-sh-plugin.jsx, /usr/share/code-insiders/resources/node_modules/typescript-vscode-sh-plugin/index.js, /usr/share/code-insiders/resources/node_modules/typescript-vscode-sh-plugin/index.jsx, /usr/share/code-insiders/node_modules/typescript-vscode-sh-plugin/package.json, /usr/share/code-insiders/node_modules/typescript-vscode-sh-plugin.js, /usr/share/code-insiders/node_modules/typescript-vscode-sh-plugin.jsx, /usr/share/code-insiders/node_modules/typescript-vscode-sh-plugin/index.js, /usr/share/code-insiders/node_modules/typescript-vscode-sh-plugin/index.jsx, /usr/share/node_modules/typescript-vscode-sh-plugin/package.json, /usr/share/node_modules/typescript-vscode-sh-plugin.js, /usr/share/node_modules/typescript-vscode-sh-plugin.jsx, /usr/share/node_modules/typescript-vscode-sh-plugin/index.js, /usr/share/node_modules/typescript-vscode-sh-plugin/index.jsx, /usr/node_modules/typescript-vscode-sh-plugin/package.json, /usr/node_modules/typescript-vscode-sh-plugin.js, /usr/node_modules/typescript-vscode-sh-plugin.jsx, /usr/node_modules/typescript-vscode-sh-plugin/index.js, /usr/node_modules/typescript-vscode-sh-plugin/index.jsx, /node_modules/typescript-vscode-sh-plugin/package.json, /node_modules/typescript-vscode-sh-plugin.js, /node_modules/typescript-vscode-sh-plugin.jsx, /node_modules/typescript-vscode-sh-plugin/index.js, /node_modules/typescript-vscode-sh-plugin/index.jsx
at Object.resolveJSModule (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:29058:19)
at Object.sys.require (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:146170:45)
at Function.Project.resolveModule (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:137786:35)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138746:36
at Object.firstDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:197:26)
at ConfiguredProject.Project.enablePlugin (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138745:41)
at _loop_2 (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138729:32)
at ConfiguredProject.Project.enableGlobalPlugins (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138735:25)
at ConfiguredProject.enablePluginsWithOptions (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:139247:22)
at ProjectService.loadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140829:25)
at ProjectService.createAndLoadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140768:22)
at ProjectService.createLoadAndUpdateConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140773:36)
at ProjectService.assignProjectToOpenedScriptInfo (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141632:44)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:107
at Object.mapDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:562:30)
at ProjectService.applyChangesInOpenFiles (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:48)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:142792:46)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:88
at IOSession.Session.executeWithRequestId (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144522:28)
at IOSession.Session.executeCommand (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:33)
at IOSession.Session.onMessage (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144555:35)
at Interface.<anonymous> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:145870:27)
at Interface.emit (events.js:203:13)
at Interface._onLine (readline.js:316:10)
at Interface._normalWrite (readline.js:461:12)
at Socket.ondata (readline.js:172:10)
at Socket.emit (events.js:203:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
Info 26 [12:43:51.888] Failed to load module 'typescript-vscode-sh-plugin' from /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/node_modules: Error: Could not resolve JS module 'typescript-vscode-sh-plugin' starting at '/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/node_modules'. Looked in: /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript-vscode-sh-plugin/package.json, /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript-vscode-sh-plugin.js, /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript-vscode-sh-plugin.jsx, /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript-vscode-sh-plugin/index.js, /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript-vscode-sh-plugin/index.jsx, /home/david/.vscode-insiders/extensions/node_modules/typescript-vscode-sh-plugin/package.json, /home/david/.vscode-insiders/extensions/node_modules/typescript-vscode-sh-plugin.js, /home/david/.vscode-insiders/extensions/node_modules/typescript-vscode-sh-plugin.jsx, /home/david/.vscode-insiders/extensions/node_modules/typescript-vscode-sh-plugin/index.js, /home/david/.vscode-insiders/extensions/node_modules/typescript-vscode-sh-plugin/index.jsx, /home/david/.vscode-insiders/node_modules/typescript-vscode-sh-plugin/package.json, /home/david/.vscode-insiders/node_modules/typescript-vscode-sh-plugin.js, /home/david/.vscode-insiders/node_modules/typescript-vscode-sh-plugin.jsx, /home/david/.vscode-insiders/node_modules/typescript-vscode-sh-plugin/index.js, /home/david/.vscode-insiders/node_modules/typescript-vscode-sh-plugin/index.jsx, /home/david/node_modules/typescript-vscode-sh-plugin/package.json, /home/david/node_modules/typescript-vscode-sh-plugin.js, /home/david/node_modules/typescript-vscode-sh-plugin.jsx, /home/david/node_modules/typescript-vscode-sh-plugin/index.js, /home/david/node_modules/typescript-vscode-sh-plugin/index.jsx, /home/node_modules/typescript-vscode-sh-plugin/package.json, /home/node_modules/typescript-vscode-sh-plugin.js, /home/node_modules/typescript-vscode-sh-plugin.jsx, /home/node_modules/typescript-vscode-sh-plugin/index.js, /home/node_modules/typescript-vscode-sh-plugin/index.jsx, /node_modules/typescript-vscode-sh-plugin/package.json, /node_modules/typescript-vscode-sh-plugin.js, /node_modules/typescript-vscode-sh-plugin.jsx, /node_modules/typescript-vscode-sh-plugin/index.js, /node_modules/typescript-vscode-sh-plugin/index.jsx
at Object.resolveJSModule (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:29058:19)
at Object.sys.require (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:146170:45)
at Function.Project.resolveModule (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:137786:35)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138746:36
at Object.firstDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:197:26)
at ConfiguredProject.Project.enablePlugin (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138745:41)
at _loop_2 (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138729:32)
at ConfiguredProject.Project.enableGlobalPlugins (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:138735:25)
at ConfiguredProject.enablePluginsWithOptions (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:139247:22)
at ProjectService.loadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140829:25)
at ProjectService.createAndLoadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140768:22)
at ProjectService.createLoadAndUpdateConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140773:36)
at ProjectService.assignProjectToOpenedScriptInfo (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141632:44)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:107
at Object.mapDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:562:30)
at ProjectService.applyChangesInOpenFiles (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:48)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:142792:46)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:88
at IOSession.Session.executeWithRequestId (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144522:28)
at IOSession.Session.executeCommand (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:33)
at IOSession.Session.onMessage (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144555:35)
at Interface.<anonymous> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:145870:27)
at Interface.emit (events.js:203:13)
at Interface._onLine (readline.js:316:10)
at Interface._normalWrite (readline.js:461:12)
at Socket.ondata (readline.js:172:10)
at Socket.emit (events.js:203:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
Info 27 [12:43:51.888] Couldn't find typescript-vscode-sh-plugin
Err 28 [12:43:51.889] Exception on executing command {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"cons","projectRootPath":"/home/david/sites/TypeScript/automatic-eslint-rule-collection-generator-GITHUB","scriptKindName":"TS"}]}}:
Debug Failure.
Error: Debug Failure.
at Object.assertDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:2032:24)
at ProjectService.updateNonInferredProjectFiles (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140860:51)
at ProjectService.addFilesToNonInferredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140745:22)
at ProjectService.updateRootAndOptionsOfNonInferredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140905:22)
at ProjectService.loadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140831:22)
at ProjectService.createAndLoadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140768:22)
at ProjectService.createLoadAndUpdateConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140773:36)
at ProjectService.assignProjectToOpenedScriptInfo (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141632:44)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:107
at Object.mapDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:562:30)
at ProjectService.applyChangesInOpenFiles (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:48)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:142792:46)
at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:88
at IOSession.Session.executeWithRequestId (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144522:28)
at IOSession.Session.executeCommand (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:33)
at IOSession.Session.onMessage (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144555:35)
at Interface.<anonymous> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:145870:27)
at Interface.emit (events.js:203:13)
at Interface._onLine (readline.js:316:10)
at Interface._normalWrite (readline.js:461:12)
at Socket.ondata (readline.js:172:10)
at Socket.emit (events.js:203:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
Info 29 [12:43:51.889] response:
{"seq":0,"type":"response","command":"updateOpen","request_seq":2,"success":false,"message":"Error processing request. Debug Failure.\nError: Debug Failure.\n at Object.assertDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:2032:24)\n at ProjectService.updateNonInferredProjectFiles (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140860:51)\n at ProjectService.addFilesToNonInferredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140745:22)\n at ProjectService.updateRootAndOptionsOfNonInferredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140905:22)\n at ProjectService.loadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140831:22)\n at ProjectService.createAndLoadConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140768:22)\n at ProjectService.createLoadAndUpdateConfiguredProject (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:140773:36)\n at ProjectService.assignProjectToOpenedScriptInfo (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141632:44)\n at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:107\n at Object.mapDefined (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:562:30)\n at ProjectService.applyChangesInOpenFiles (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:141928:48)\n at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:142792:46)\n at /home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:88\n at IOSession.Session.executeWithRequestId (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144522:28)\n at IOSession.Session.executeCommand (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144531:33)\n at IOSession.Session.onMessage (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:144555:35)\n at Interface.<anonymous> (/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.js:145870:27)\n at Interface.emit (events.js:203:13)\n at Interface._onLine (readline.js:316:10)\n at Interface._normalWrite (readline.js:461:12)\n at Socket.ondata (readline.js:172:10)\n at Socket.emit (events.js:203:13)\n at addChunk (_stream_readable.js:295:12)\n at readableAddChunk (_stream_readable.js:276:11)\n at Socket.Readable.push (_stream_readable.js:210:10)\n at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)"}
Info 30 [12:43:51.890] event:
{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":13991}}
Info 31 [12:43:51.891] request:
{"seq":3,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 32 [12:43:51.892] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}}
Perf 33 [12:43:51.892] 3::geterr: async elapsed time (in milliseconds) 0.7846
VS Code version: Code - Insiders 1.42.0-insider (33c79d5, 2020-01-15T08:55:46.564Z)
OS version: Linux x64 4.18.0-80.11.2.el8_0.x86_64
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz (8 x 3667) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: disabled_software skia_renderer: disabled_off_ok video_decode: unavailable_off viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
| Load (avg) | 1, 1, 1 |
| Memory (System) | 7.50GB (0.46GB free) |
| Process Argv | . --no-sandbox |
| Screen Reader | no |
| VM | 0% |
Extensions (1)
| Extension | Author (truncated) | Version |
|---|---|---|
| vscode-typescript-next | ms- | 3.8.20200114 |
Activity
[-]The TypeScript language service died 5 times right after it got started. The service will not be restarted. > Using latest insiders with latest typescript dev version[/-][+]Debug failure in ProjectService.updateNonInferredProjectFiles [/+]sheetalkamat commentedon Jan 15, 2020
David Else (@David-Else) I looked into the tsserver log you shared. The first log doesn't show any exception.. The next one is unrelated on untitled new file (we already have test case for this which seem to pass and pasting same commands on tsserver locally works too). It I think has to do with tsconfig project some how where in something must have gone wrong with file presence checking and actually being able to read the file.. From your log it seems like it has to do with one of the files from
David-Else commentedon Jan 15, 2020
Sheetal Nandi (@sheetalkamat) I think I have got closer to the problem:
sheetalkamat commentedon Jan 15, 2020
I still don't see error as you mentioned. In your log the tsconfig found the root files as ["Untitled-1.ts"] is there this file on the disk? When you are creating a file, is it saved on the disk?
David-Else commentedon Jan 15, 2020
Sheetal Nandi (@sheetalkamat) No, I am not saving the file. I simply press
ctrl-nto create a new file (which is set to be a TypeScript file) and then I start typing. It crashes instantly, before I can save anything.David-Else commentedon Jan 15, 2020
I am looking for log files starting with
<semantic>, here is the one before in the output tab:David-Else commentedon Jan 15, 2020
This is what code looks like:

David-Else commentedon Jan 16, 2020
Sheetal Nandi (@sheetalkamat) I have been playing about with it for a while. If I save a file with the title
Untitled-2.tsand then create a new file that automatically has the same name I get the crash. Could it be that I saved a file and then the unsaved file with the same name causes the crash? Would the log back that theory up?I am not sure it is that, I have had so many of these crashes over the last few versions of VS Code I am starting to get confused as to what is going on?! I see a large number of people on this forum reporting the '5 times' crash error, but the job of digging out the log files seems too much bother for people to do and they give up. Would be much better if TS could automatically report errors and attach logs to the error report.
sheetalkamat commentedon Jan 16, 2020
David Else (@David-Else) Investigating this further, could you check if
/usr/share/code-insiders/code-insidersthere is tsconfig.json in that folder... Also can you make change to tsserver file and generate new log so we can see whats going on..File is :
/home/david/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-3.8.20200114/node_modules/typescript/lib/tsserver.jsChange from
to
David-Else commentedon Jan 16, 2020
Sheetal Nandi (@sheetalkamat) I have done as you asked. To make this crash happen I started VS Code in a directory that was empty apart from the tsconfig file I posted above. I created a new file and started typing which worked. I then saved the file as the name it was given
Untitled-1.tsand pressedcrtl-nand started typing. Crash!I could find no tsconfig in the director you mentioned, nor a 2nd directory called
code-insidersyou told me to look in. I have added a screen shot to show you the contents of the directory.Does this show you the problem now? Thanks.
sheetalkamat commentedon Jan 16, 2020
David Else (@David-Else) Thank you providing information needed. I am finally able to repro this here with given information.
Test for #36200
Handle dynamic files by vscode
Handle untitled files from vscode which are of format: untitled:^Unti…
David-Else commentedon Jan 17, 2020
Sheetal Nandi (@sheetalkamat) Fantastic you have fixed it! I think the way I use an extension called Quoka to constantly use new unsaved files to prototype things meant I was plagued by this all the time. Finally I can get back to work :)
I am afraid I don't know how the TypeScript releases work.
ms-vscode.vscode-typescript-nextextension?Cheers.
sheetalkamat commentedon Jan 17, 2020
This should be in typescript nightly drop and the future release of 3.8.1.