Steps to Reproduce:
result many error reports of The TypeScript language service died 5 times right after it got started. The service will not be restarted.
Does this issue occur when all extensions are disabled?: Yes
NOTE: This error reporoduced perfectly first time I tried it, and then it stopped giving errors when I restarted VS Code? I am having problems reproducing it now, interested to see what others find.
Please share the error text if possible. This should be visible in the dev tools console: Developer: Toggle Developer Tools or in the TypeScript section of the output window
@mjbvz I tried to wipe the directory and repeat the steps, but now Code somehow knows I want to use TS 3.7.2 and selects it automatically?
I can't find it in my user or workspace settings? Where is it stored when I manually select 3.7.2 using the VS Code interface? Sometimes it has created a new setting in my workspace settings, and sometimes not, and if I delete it then nothing changes... super weird.
Did you run Select TypeScript version again and set it back to use VS Code's version?
When I opened VS Code today in a newly created test directory as per the instructions above it had reset to VS Code's TS 3.6.3 internal version.
I have re-created the error following the same instructions I gave above. When I changed to 3.7.2 .vscode/settings.json was generated:
{
"typescript.tsdk": "node_modules/typescript/lib"
}
I opened the developer tools as you instructed and copied the results for you here:
After update, I get this error all the time, I don't think it's related only to this case. I did enable/disable it but after a while it crashes again.
Later edit: Did revert back to 1.39, don't have this problem.
This is the error I see in DevTools:
ERR <semantic> TypeScript Server Error (3.6.3)
No Project.
Error: No Project.
at Object.ThrowNoProject (tsserver.js:128093:23)
at ProjectService.doEnsureDefaultProjectForFile (tsserver.js:131030:131)
at ProjectService.ensureDefaultProjectForFile (tsserver.js:131025:75)
at IOSession.Session.getFileAndProjectWorker (tsserver.js:134578:87)
at IOSession.Session.getFileAndProject (tsserver.js:134561:29)
at IOSession.Session.getApplicableRefactors (tsserver.js:135011:31)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:133868:61)
at tsserver.js:135256:88
at IOSession.Session.executeWithRequestId (tsserver.js:135247:28)
at IOSession.Session.executeCommand (tsserver.js:135256:33)
at IOSession.Session.onMessage (tsserver.js:135279:35)
at Interface.<anonymous> (tsserver.js:136594:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17): Error: <semantic> TypeScript Server Error (3.6.3)
No Project.
Error: No Project.
at Object.ThrowNoProject (tsserver.js:128093:23)
at ProjectService.doEnsureDefaultProjectForFile (tsserver.js:131030:131)
at ProjectService.ensureDefaultProjectForFile (tsserver.js:131025:75)
at IOSession.Session.getFileAndProjectWorker (tsserver.js:134578:87)
at IOSession.Session.getFileAndProject (tsserver.js:134561:29)
at IOSession.Session.getApplicableRefactors (tsserver.js:135011:31)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:133868:61)
at tsserver.js:135256:88
at IOSession.Session.executeWithRequestId (tsserver.js:135247:28)
at IOSession.Session.executeCommand (tsserver.js:135256:33)
at IOSession.Session.onMessage (tsserver.js:135279:35)
at Interface.<anonymous> (tsserver.js:136594:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
at Function.create (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:63732)
at h.dispatchResponse (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:56670)
at h.dispatchMessage (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:55568)
at c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:55044
at l.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:47:207)
at t.Reader.onLengthData (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:61946)
at Socket.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:61594)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
After using Code 1.40.0 for just ten minutes I am getting this error all over when creating new files and running QuokkaJS: new typescript file. Something is very wrong here.
Just got this in the main VS Code notification window after creating a new file, getting the original The TypeScript language service died 5 times and then going back to try and edit my original file.
Myself and @OogieBoogieInJSON seem to be getting the same Error: No Project, @mjbvz Any idea what is going on here?
<semantic> TypeScript Server Error (3.7.2)
No Project.
Error: No Project.
at Object.ThrowNoProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:133275:23)
at ProjectService.doEnsureDefaultProjectForFile (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:136545:131)
at ProjectService.ensureDefaultProjectForFile (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:136540:75)
at IOSession.Session.getFileAndProjectWorker (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140192:87)
at IOSession.Session.getFileAndProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140175:29)
at IOSession.Session.organizeImports (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140654:31)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:139489:61)
at /home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140870:88
at IOSession.Session.executeWithRequestId (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140861:28)
at IOSession.Session.executeCommand (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140870:33)
at IOSession.Session.onMessage (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140893:35)
at Interface.<anonymous> (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:142208:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
If you can share an project, please dodo. Otherwise, please share the complete TS Server log:
"typescript.tsserver.log": "verbose",TypeScript: Open TS Server log commandThis should open a large log file called tsserver.log
If you can share the log, I can take a look to see if anything stands out
鈿狅笍Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this
@mjbvz I spent most of yesterday messing about with VS Code 1.40.0 regressions.
I did what you originally asked me to do and the results are https://github.com/microsoft/vscode/files/3823875/ts372-code-console-error.txt as I posted above. I have gone back to 1.39.2 now until at least the fonts are working again in 1.40.x.
There is no project to share, you literally just start typing anything and the error appears and keeps on coming. Did you try to reproduce it as my steps in the original post? I can't spend any more time debugging VS Code, I am going to stick with 1.39.2 for now, will come back to this thread if it happens again if I update in the future. Cheers.
Same issue but slightly different log from me on Windows 10.
One thing I've noticed is that vs-code 1.4.0 seems to open up my terminal (powershell) in D:/code/blah, where the actual folder is D:/Code/blah, (note capitalisation of Code). I don't recall this happening in 1.39.x.
You can also see this in the logs, line 28 says "could not find file" and uses the lowercase code. The file definitely exists.
what's the status on this error? I have it as well. Downgraded to 1.3.9 and continue to have it.
Edited: So 2 days and no respone. Not to mention the absolute crap you have to jump through to develop in VS Code. So, I've been forced to go into settings and ensure that VS Code does not auto update, in order to stay on 1.39.2 Very frustrating and time consuming. I love VS Code. But man, test your releases!!!!!!!!!!!!!!!!!!!!!!1
have same error
Error: No Project.
at Object.ThrowNoProject (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:128093:23)
at IOSession.Session.getFileAndLanguageServiceForSyntacticOperation (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:134569:42)
at IOSession.Session.getOutliningSpans (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:134582:31)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:133681:61)
at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:135256:88
at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:135247:28)
at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:135256:33)
at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:135279:35)
at Interface.<anonymous> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:136594:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
Same error on Windows 10 with SPFx project (TS 1.5.2), I Downgrade to 1.39.2.
I have tried use Typescript version 3.5.3 from project folder with vscode 1.40 but it didn't help. Had to downgrade
@David-Else I need the output from the TS Server (not just the dev tools console). Here's how the collect that
"typescript.tsserver.log": "verbose",TypeScript section of output panel<semantic> part) :[Info - 4:06:59 PM] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20191111T144045/exthost1/vscode.typescript-language-features/tsserver-log-F2rDlk/tsserver.log
Please look through that log file for errors or stack traces (they should be near the bottom). If you can share the log, I can also take a look to see if anything stands out
鈿狅笍Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this
Also please try using the latest VS Code insiders build to see if that fixes the issue for you. I've made a few potential fixes based on the logs already shared but can't repo this problem to verify them. I understand that this error is frustrating but we aren't seeing enough users effected to justify the risk of backporting these fixes to 1.40
@mjbvz OK, I reinstalled 1.40 and got the error instantly when opening an existing project (that was set to use TS 3.7.2) and creating a new file and switching it to TypeScript using the bottom right language selector. I followed your instructions and I think I have the info you need :) First here is the results for that error.
(see also the error on a clean project in the next section of this report)
Please let me know if this enables you to find the bug! Thanks!
Info 0 [10:14:32.122] Starting TS Server
Info 1 [10:14:32.122] Version: 3.7.2
Info 2 [10:14:32.122] Arguments: /usr/share/code/code /home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/dd2b944cf07f90d02b97/tscancellation-b2a0bd347c91a0ba7aa4.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20191113T100248/exthost1/vscode.typescript-language-features/tsserver-log-5rQIyx/tsserver.log --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [10:14:32.122] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [10:14:32.124] Binding...
Info 5 [10:14:32.131] request:
{"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6 [10:14:32.132] Host information vscode
Info 7 [10:14:32.132] response:
{"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8 [10:14:32.132] 0::configure: async elapsed time (in milliseconds) 1.0790
Info 9 [10:14:32.132] request:
{"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10 [10:14:32.133] Scheduled: *ensureProjectForOpenFiles*
Perf 11 [10:14:32.133] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.5926
Info 12 [10:14:32.133] response:
{"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13 [10:14:32.133] request:
{"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:Untitled-1","fileContent":"le","projectRootPath":"/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB","scriptKindName":"TS"}]}}
Info 14 [10:14:32.134] Search path:
Info 15 [10:14:32.135] 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 [10:14:32.135] For info: untitled:Untitled-1 :: Config file name: tsconfig.json
Info 17 [10:14:32.135] Opened configuration file tsconfig.json
Info 18 [10:14:32.136] FileWatcher:: Added:: WatchInfo: tsconfig.json 2000 Project: tsconfig.json WatchType: Config file
Info 19 [10:14:32.137] event:
{"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"tsconfig.json","reason":"Creating possible configured project for untitled:Untitled-1 to open"}}
Info 20 [10:14:32.151] Config: tsconfig.json : {
"rootNames": [
"src/app.ts",
"src/game-data-interface.ts",
"src/entities/base-class.ts",
"src/entities/bitmap-character.ts",
"src/entities/bullet.ts",
"src/entities/character.ts",
"src/entities/factory.ts",
"src/entities/graves.ts",
"src/entities/hero.ts",
"src/entities/text.ts",
"src/entities/vector-character.ts",
"src/entities/zombie.ts",
"src/states/base-class.ts",
"src/states/game-over.ts",
"src/states/global-state.ts",
"src/states/init.ts",
"src/states/level-one.ts",
"src/states/level-two.ts",
"src/states/start-screen.ts",
"src/utilities/assert.ts",
"src/utilities/collision-detection.ts",
"src/utilities/http-service.ts",
"src/utilities/loader.ts",
"src/utilities/new-collision-detection.ts",
"src/utilities/random.ts",
"src/utilities/tween.ts",
"src/utilities/vector-example.ts",
"src/utilities/vectors.ts",
"test/app-test.ts"
],
"options": {
"target": 6,
"module": 5,
"sourceMap": true,
"strict": true,
"moduleResolution": 2,
"esModuleInterop": true,
"resolveJsonModule": true,
"configFilePath": "tsconfig.json"
}
}
Info 21 [10:14:32.151] DirectoryWatcher:: Added:: WatchInfo: src 1 Project: tsconfig.json WatchType: Wild card directory
Info 22 [10:14:32.153] Elapsed:: 2ms DirectoryWatcher:: Added:: WatchInfo: src 1 Project: tsconfig.json WatchType: Wild card directory
Info 23 [10:14:32.153] DirectoryWatcher:: Added:: WatchInfo: test 1 Project: tsconfig.json WatchType: Wild card directory
Info 24 [10:14:32.153] Elapsed:: 0ms DirectoryWatcher:: Added:: WatchInfo: test 1 Project: tsconfig.json WatchType: Wild card directory
Err 25 [10:14:32.165] Exception on executing command {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:Untitled-1","fileContent":"le","projectRootPath":"/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB","scriptKindName":"TS"}]}}:
Cannot read property 'path' of undefined
TypeError: Cannot read property 'path' of undefined
at ProjectService.updateNonInferredProjectFiles (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137385:43)
at ProjectService.addFilesToNonInferredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137275:22)
at ProjectService.updateRootAndOptionsOfNonInferredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137423:22)
at ProjectService.loadConfiguredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137359:22)
at ProjectService.createAndLoadConfiguredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137299:22)
at ProjectService.createLoadAndUpdateConfiguredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137304:36)
at ProjectService.assignProjectToOpenedScriptInfo (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:138127:44)
at /home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:138358:107
at Object.mapDefined (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:565:30)
at ProjectService.applyChangesInOpenFiles (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:138358:48)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:139212:46)
at /home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140870:88
at IOSession.Session.executeWithRequestId (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140861:28)
at IOSession.Session.executeCommand (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140870:33)
at IOSession.Session.onMessage (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140893:35)
at Interface.<anonymous> (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:142208:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
Info 26 [10:14:32.165] response:
{"seq":0,"type":"response","command":"updateOpen","request_seq":2,"success":false,"message":"Error processing request. Cannot read property 'path' of undefined\nTypeError: Cannot read property 'path' of undefined\n at ProjectService.updateNonInferredProjectFiles (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137385:43)\n at ProjectService.addFilesToNonInferredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137275:22)\n at ProjectService.updateRootAndOptionsOfNonInferredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137423:22)\n at ProjectService.loadConfiguredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137359:22)\n at ProjectService.createAndLoadConfiguredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137299:22)\n at ProjectService.createLoadAndUpdateConfiguredProject (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:137304:36)\n at ProjectService.assignProjectToOpenedScriptInfo (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:138127:44)\n at /home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:138358:107\n at Object.mapDefined (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:565:30)\n at ProjectService.applyChangesInOpenFiles (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:138358:48)\n at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:139212:46)\n at /home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140870:88\n at IOSession.Session.executeWithRequestId (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140861:28)\n at IOSession.Session.executeCommand (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140870:33)\n at IOSession.Session.onMessage (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:140893:35)\n at Interface.<anonymous> (/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.7.2/node_modules/typescript/lib/tsserver.js:142208:27)\n at Interface.emit (events.js:200:13)\n at Interface._onLine (readline.js:314:10)\n at Interface._normalWrite (readline.js:459:12)\n at Socket.ondata (readline.js:170:10)\n at Socket.emit (events.js:200:13)\n at addChunk (_stream_readable.js:294:12)\n at readableAddChunk (_stream_readable.js:275:11)\n at Socket.Readable.push (_stream_readable.js:210:10)\n at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)"}
Info 27 [10:14:32.166] event:
{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":6694}}
Info 28 [10:14:32.167] request:
{"seq":3,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"","projectRootPath":"/home/david/sites/TypeScript/typescript-zombie-attack-GITHUB","scriptKindName":"TS"}]}}
Next I repeated the same steps outlined at the start of this issue. As soon as I switched to TS 3.7.2 it happened, so that is involved I am sure. There were a lot of different logs generated (some empty), Here they are all in order after switching to 3.7.2 and the error:
Info 0 [10:20:52.172] Starting TS Server
Info 1 [10:20:52.173] Version: 3.7.2
Info 2 [10:20:52.173] Arguments: /usr/share/code/code /home/david/Downloads/finaltestdown/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/d9b8e96bf16494c50598/tscancellation-8d0448fe09b850983d86.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20191113T101922/exthost1/vscode.typescript-language-features/tsserver-log-CObWP3/tsserver.log --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [10:20:52.173] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [10:20:52.175] Binding...
Info 5 [10:20:52.181] request:
{"seq":0,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"let x = 10;\nconst x = 11;\n","projectRootPath":"/home/david/Downloads/finaltestdown","scriptKindName":"TS"}]}}
Info 6 [10:20:52.183] Search path:
Info 7 [10:20:52.183] 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 8 [10:20:52.183] ConfigFilePresence:: Current Watches: :: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: OtherOpenFiles: untitled:^Untitled-1 Status: File added to open files impacted by this config file
Info 9 [10:20:52.183] For info: untitled:^Untitled-1 :: No config files found.
Info 10 [10:20:52.185] ConfigFilePresence:: Current Watches: :: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:^Untitled-1 OtherOpenFiles: Status: Open file was set as Inferred root
Info 11 [10:20:52.185] FileWatcher:: Added:: WatchInfo: tsconfig.json 2000 Project: WatchType: Config file for the inferred project root
Info 12 [10:20:52.186] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:^Untitled-1 OtherOpenFiles: Status: Updated the callback
Info 13 [10:20:52.186] ConfigFilePresence:: Current Watches: :: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:^Untitled-1 OtherOpenFiles: Status: Open file was set as Inferred root
Info 14 [10:20:52.186] FileWatcher:: Added:: WatchInfo: jsconfig.json 2000 Project: WatchType: Config file for the inferred project root
Info 15 [10:20:52.186] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:^Untitled-1 OtherOpenFiles: Status: Updated the callback
Info 16 [10:20:52.186] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
Info 17 [10:20:52.195] DirectoryWatcher:: Added:: WatchInfo: /home/david/Downloads/finaltestdown/node_modules 1 Project: WatchType: node_modules for closed script infos in them
Info 0 [10:20:52.539] Starting TS Server
Info 1 [10:20:52.539] Version: 3.7.2
Info 2 [10:20:52.539] Arguments: /usr/share/code/code /home/david/Downloads/finaltestdown/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/d9b8e96bf16494c50598/tscancellation-4a72efcce5b9b5449b71.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20191113T101922/exthost1/vscode.typescript-language-features/tsserver-log-bi3lUN/tsserver.log --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [10:20:52.539] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [10:20:52.541] Binding...
Info 5 [10:20:52.549] request:
{"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6 [10:20:52.549] Host information vscode
Info 7 [10:20:52.549] response:
{"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8 [10:20:52.550] 0::configure: async elapsed time (in milliseconds) 1.1981
Info 9 [10:20:52.550] request:
{"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10 [10:20:52.550] Scheduled: *ensureProjectForOpenFiles*
Perf 11 [10:20:52.551] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.7270
Info 12 [10:20:52.551] response:
{"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13 [10:20:52.551] request:
{"seq":2,"type":"request","command":"open","arguments":{"file":"untitled:Untitled-1","fileContent":"let x = 10;\nconst x = 11;\n","projectRootPath":"/home/david/Downloads/finaltestdown","scriptKindName":"TS"}}
Info 14 [10:20:52.551] Search path:
Info 15 [10:20:52.552] 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 [10:20:52.552] ConfigFilePresence:: Current Watches: :: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: OtherOpenFiles: untitled:Untitled-1 Status: File added to open files impacted by this config file
Info 17 [10:20:52.552] For info: untitled:Untitled-1 :: No config files found.
Info 18 [10:20:52.554] ConfigFilePresence:: Current Watches: :: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Open file was set as Inferred root
Info 19 [10:20:52.554] FileWatcher:: Added:: WatchInfo: tsconfig.json 2000 Project: WatchType: Config file for the inferred project root
Info 20 [10:20:52.554] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Updated the callback
Info 21 [10:20:52.555] ConfigFilePresence:: Current Watches: :: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Open file was set as Inferred root
Info 22 [10:20:52.555] FileWatcher:: Added:: WatchInfo: jsconfig.json 2000 Project: WatchType: Config file for the inferred project root
Info 23 [10:20:52.555] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Updated the callback
Info 24 [10:20:52.555] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
Info 25 [10:20:52.565] DirectoryWatcher:: Added:: WatchInfo: /home/david/Downloads/finaltestdown/node_modules 1 Project: WatchType: node_modules for closed script infos in them
Info 26 [10:20:52.590] Elapsed:: 25ms DirectoryWatcher:: Added:: WatchInfo: /home/david/Downloads/finaltestdown/node_modules 1 Project: WatchType: node_modules for closed script infos in them
Info 27 [10:20:53.273] DirectoryWatcher:: Added:: WatchInfo: /home/david/Downloads/finaltestdown/node_modules/@types 1 Project: /dev/null/inferredProject1* WatchType: Type roots
Info 28 [10:20:53.274] Elapsed:: 1ms DirectoryWatcher:: Added:: WatchInfo: /home/david/Downloads/finaltestdown/node_modules/@types 1 Project: /dev/null/inferredProject1* WatchType: Type roots
Info 29 [10:20:53.274] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true Elapsed: 719ms
Info 30 [10:20:53.274] Project '/dev/null/inferredProject1*' (Inferred)
Info 31 [10:20:53.274] Files (19)
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es5.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.webworker.importscripts.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.scripthost.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.core.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.collection.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.generator.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.promise.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.proxy.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.reflect.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.array.include.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.full.d.ts
untitled:Untitled-1
Info 32 [10:20:53.274] -----------------------------------------------
Info 33 [10:20:53.276] Project '/dev/null/inferredProject1*' (Inferred) 0
Info 33 [10:20:53.276] Files (19)
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es5.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.webworker.importscripts.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.scripthost.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.core.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.collection.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.generator.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.promise.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.proxy.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.reflect.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.array.include.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.full.d.ts
untitled:Untitled-1
Info 33 [10:20:53.276] -----------------------------------------------
Info 33 [10:20:53.276] Open files:
Info 33 [10:20:53.276] FileName: untitled:Untitled-1 ProjectRootPath: /home/david/Downloads/finaltestdown
Info 33 [10:20:53.276] Projects: /dev/null/inferredProject1*
Perf 33 [10:20:53.276] 2::open: async elapsed time (in milliseconds) 725.5357
Info 34 [10:20:53.277] event:
{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":7388}}
Info 35 [10:20:53.277] Running: *ensureProjectForOpenFiles*
Info 36 [10:20:53.278] Structure before ensureProjectForOpenFiles:
Info 37 [10:20:53.278] Project '/dev/null/inferredProject1*' (Inferred) 0
Info 37 [10:20:53.278] Files (19)
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es5.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.webworker.importscripts.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.scripthost.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.core.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.collection.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.generator.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.promise.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.proxy.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.reflect.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.array.include.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.full.d.ts
untitled:Untitled-1
Info 37 [10:20:53.278] -----------------------------------------------
Info 37 [10:20:53.278] Open files:
Info 37 [10:20:53.278] FileName: untitled:Untitled-1 ProjectRootPath: /home/david/Downloads/finaltestdown
Info 37 [10:20:53.278] Projects: /dev/null/inferredProject1*
Info 37 [10:20:53.278] Structure after ensureProjectForOpenFiles:
Info 38 [10:20:53.278] Project '/dev/null/inferredProject1*' (Inferred) 0
Info 38 [10:20:53.278] Files (19)
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es5.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.dom.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.webworker.importscripts.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.scripthost.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.core.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.collection.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.generator.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.iterable.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.promise.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.proxy.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.reflect.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.array.include.d.ts
/home/david/Downloads/finaltestdown/node_modules/typescript/lib/lib.es2016.full.d.ts
untitled:Untitled-1
Info 38 [10:20:53.278] -----------------------------------------------
Info 38 [10:20:53.278] Open files:
Info 38 [10:20:53.278] FileName: untitled:Untitled-1 ProjectRootPath: /home/david/Downloads/finaltestdown
Info 38 [10:20:53.278] Projects: /dev/null/inferredProject1*
Info 38 [10:20:53.278] got projects updated in background, updating diagnostics for untitled:Untitled-1
Info 39 [10:20:53.278] event:
{"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["untitled:Untitled-1"]}}
Info 40 [10:20:53.280] request:
{"seq":3,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 41 [10:20:53.280] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}}
Perf 42 [10:20:53.280] 3::geterr: async elapsed time (in milliseconds) 0.6165
Info 43 [10:20:53.480] request:
{"seq":4,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 44 [10:20:53.480] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":4}}
Perf 45 [10:20:53.480] 4::geterr: async elapsed time (in milliseconds) 0.3654
Info 46 [10:20:54.839] request:
{"seq":5,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"untitled:^Untitled-1","textChanges":[{"newText":"d","start":{"line":3,"offset":1},"end":{"line":3,"offset":1}}]}],"closedFiles":[],"openFiles":[]}}
md5-2d675b9d2d017788513a6356bd8d29a8
Info 0 [10:20:55.93] Starting TS Server
Info 1 [10:20:55.94] Version: 3.7.2
Info 2 [10:20:55.94] Arguments: /usr/share/code/code /home/david/Downloads/finaltestdown/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/d9b8e96bf16494c50598/tscancellation-9f42296b22048ee05132.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20191113T101922/exthost1/vscode.typescript-language-features/tsserver-log-r7j4NQ/tsserver.log --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [10:20:55.94] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [10:20:55.97] Binding...
Info 5 [10:20:55.103] request:
{"seq":0,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:Untitled-1","fileContent":"let x = 10;\nconst x = 11;\nd","projectRootPath":"/home/david/Downloads/finaltestdown","scriptKindName":"TS"}]}}
Info 6 [10:20:55.104] Search path:
Info 7 [10:20:55.104] 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 8 [10:20:55.104] ConfigFilePresence:: Current Watches: :: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: OtherOpenFiles: untitled:Untitled-1 Status: File added to open files impacted by this config file
Info 9 [10:20:55.104] For info: untitled:Untitled-1 :: No config files found.
Info 10 [10:20:55.106] ConfigFilePresence:: Current Watches: :: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Open file was set as Inferred root
Info 11 [10:20:55.106] FileWatcher:: Added:: WatchInfo: tsconfig.json 2000 Project: WatchType: Config file for the inferred project root
Info 12 [10:20:55.107] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: tsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Updated the callback
Info 13 [10:20:55.107] ConfigFilePresence:: Current Watches: :: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Open file was set as Inferred root
Info 14 [10:20:55.107] FileWatcher:: Added:: WatchInfo: jsconfig.json 2000 Project: WatchType: Config file for the inferred project root
Info 15 [10:20:55.107] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: jsconfig.json Currently impacted open files: RootsOfInferredProjects: untitled:Untitled-1 OtherOpenFiles: Status: Updated the callback
Info 16 [10:20:55.107] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
md5-2d675b9d2d017788513a6356bd8d29a8
Info 0 [10:20:55.411] Starting TS Server
Info 1 [10:20:55.411] Version: 3.7.2
Info 2 [10:20:55.411] Arguments: /usr/share/code/code /home/david/Downloads/finaltestdown/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/d9b8e96bf16494c50598/tscancellation-73491580b2cea792d63c.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20191113T101922/exthost1/vscode.typescript-language-features/tsserver-log-w0fbrX/tsserver.log --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [10:20:55.411] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [10:20:55.414] Binding...
md5-2d675b9d2d017788513a6356bd8d29a8
Info 0 [10:20:55.889] Starting TS Server
Info 1 [10:20:55.889] Version: 3.7.2
Info 2 [10:20:55.889] Arguments: /usr/share/code/code /home/david/Downloads/finaltestdown/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/d9b8e96bf16494c50598/tscancellation-c4843371de3c16a664fd.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20191113T101922/exthost1/vscode.typescript-language-features/tsserver-log-SrRno9/tsserver.log --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3 [10:20:55.889] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4 [10:20:55.891] Binding...
Info 5 [10:20:55.898] request:
{"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6 [10:20:55.898] Host information vscode
Info 7 [10:20:55.899] response:
{"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8 [10:20:55.899] 0::configure: async elapsed time (in milliseconds) 1.1550
Info 9 [10:20:55.899] request:
{"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10 [10:20:55.900] Scheduled: *ensureProjectForOpenFiles*
Perf 11 [10:20:55.900] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.6515
Info 12 [10:20:55.900] response:
{"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13 [10:20:55.900] request:
{"seq":2,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:Untitled-1"]}}
Info 14 [10:20:55.901] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}}
Perf 15 [10:20:55.901] 2::geterr: async elapsed time (in milliseconds) 0.6548
Info 16 [10:20:55.901] event:
{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":7488}}
Info 17 [10:20:56.151] Running: *ensureProjectForOpenFiles*
Info 18 [10:20:56.151] Structure before ensureProjectForOpenFiles:
Info 19 [10:20:56.151] Open files:
Info 19 [10:20:56.151] Structure after ensureProjectForOpenFiles:
Info 20 [10:20:56.151] Open files:
Info 20 [10:20:56.152] got projects updated in background, updating diagnostics for
Info 21 [10:21:9.747] request:
{"seq":3,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 22 [10:21:9.748] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}}
Perf 23 [10:21:9.748] 3::geterr: async elapsed time (in milliseconds) 0.4521
Info 24 [10:21:12.949] request:
{"seq":4,"type":"request","command":"geterr","arguments":{"delay":0,"files":["untitled:^Untitled-1"]}}
Info 25 [10:21:12.950] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":4}}
Perf 26 [10:21:12.950] 4::geterr: async elapsed time (in milliseconds) 0.5811
@David-Else's error is now being tracked upstream by https://github.com/microsoft/TypeScript/issues/35091. We'll try to get this fixed in VS Code 1.41 which will bundle an updated version of TypeScript 3.7
Most helpful comment
After update, I get this error all the time, I don't think it's related only to this case. I did enable/disable it but after a while it crashes again.
Later edit: Did revert back to 1.39, don't have this problem.
This is the error I see in DevTools: