microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.72k stars 12.45k forks source link

TS Server fatal error: Debug Failure. #38644

Closed Pkan-Iv closed 3 years ago

Pkan-Iv commented 4 years ago

Issue Type: Bug

TypeScript Version: 3.9.2-insiders.20200509 Steps to reproduce crash 1. 2. 3. TS Server Error Stack

Error: Debug Failure.
    at Object.releaseDocumentWithKey (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:114894:35)
    at Object.onReleaseOldSourceFile (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:138746:34)
    at Object.createProgram (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:100027:26)
    at synchronizeHostData (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:138714:26)
    at Proxy.getProgram (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:138806:13)
    at InferredProject.Project.updateGraphWorker (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143298:53)
    at InferredProject.Project.updateGraph (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143241:42)
    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:145137:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146629:26)
    at c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146886:97
    at Object.flatMap (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:465:25)
    at ProjectService.applyChangesInOpenFiles (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146886:41)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:147749:46)
    at c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149512:88
    at IOSession.Session.executeWithRequestId (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149503:28)
    at IOSession.Session.executeCommand (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149512:33)
    at IOSession.Session.onMessage (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149536:35)
    at Interface.<anonymous> (c:\Users\KanindaPatrick\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150852: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)

VS Code version: Code - Insiders 1.46.0-insider (6849775440496504e0677ffcf2a46d47ad9130f5, 2020-05-15T05:30:56.857Z) OS version: Windows_NT x64 10.0.19628

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)| |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: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.88GB (4.76GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (66) Extension|Author (truncated)|Version ---|---|--- project-manager|ale|11.0.0 vscode-deno|axe|3.7.0 npm-intellisense|chr|1.3.0 path-intellisense|chr|1.4.2 jsrefactor|cms|2.20.6 gitignore|cod|0.6.0 bracket-pair-colorizer|Coe|1.0.61 bracket-pair-colorizer-2|Coe|0.1.3 vscode-eslint|dba|2.1.5 vscode-faker|dee|1.4.1 git-extension-pack|don|0.1.3 githistory|don|0.6.5 es7-react-js-snippets|dsz|2.7.1 vscode-babel-coloring|dza|0.0.4 git-cheatsheet|dzh|1.1.1 gitlens|eam|10.2.1 vscode-npm-script|eg2|0.3.11 test-runner|eri|1.1.1 git-project-manager|fel|1.7.1 vscode-jest-runner|fir|0.4.17 auto-close-tag|for|0.5.7 auto-rename-tag|for|0.1.3 code-runner|for|0.10.0 search-node-modules|jas|1.3.0 vscode-peacock|joh|3.7.2 vscode-styled-components|jpo|0.0.29 chat|kar|0.33.0 vscode-codemetrics|kis|1.24.0 node-module-intellisense|lei|1.5.0 git-graph|mhu|1.22.0 vscode-azurefunctions|ms-|0.22.1 vscode-language-pack-fr|MS-|1.45.1 csharp|ms-|1.21.18 python|ms-|2020.6.79753-dev remote-containers|ms-|0.117.1 remote-ssh|ms-|0.51.0 remote-ssh-edit|ms-|0.51.0 remote-ssh-explorer|ms-|0.51.0 remote-wsl|ms-|0.44.2 vscode-remote-extensionpack|ms-|0.20.0 azure-account|ms-|0.8.11 cpptools|ms-|0.28.0 vsliveshare|ms-|1.0.2169 vsliveshare-audio|ms-|0.1.85 vsliveshare-pack|ms-|0.3.4 debugger-for-chrome|msj|4.12.7 vscode-for-node-js-development-pack|nod|2.0.1 indent-rainbow|ode|7.4.0 vscode-jest|Ort|3.2.0 javascript-test-runner|osh|1.2.1 material-icon-theme|PKi|4.1.0 prettier-now|rem|1.4.9 LiveServer|rit|5.6.1 vscode-javascript-booster|sbu|0.12.3 code-settings-sync|Sha|3.4.3 open-in-browser|tec|2.0.0 vscodeintellicode|Vis|1.2.7 vscode-icons|vsc|10.1.1 gitblame|wad|4.0.1 nodejs-extension-pack|wad|0.1.9 vscode-todo-highlight|way|1.0.4 glean|wix|5.0.0 vscode-import-cost|wix|2.12.0 JavaScriptSnippets|xab|1.8.0 markdown-all-in-one|yzh|2.8.0 vscode-open-in-github|ziy|1.3.6
mjbvz commented 4 years ago

Similar error stack to #38505

RyanCavanaugh commented 4 years ago

We need a way to reproduce the problem, or at least some hints

mjbvz commented 3 years ago

Closing as not actionable without more information

If you see this again with VS Code 1.53+ and TypeScript 4.15+, please let us know

mjbvz commented 3 years ago

Actually, this specific stack means the problem very likely came from the Deno extension