microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.45k stars 29.36k forks source link

TS Server fatal error: Debug Failure. #106377

Closed cxhcmc closed 4 years ago

cxhcmc commented 4 years ago

Issue Type: Bug

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 3.9.7

Steps to reproduce crash 1. 2. 3.

TS Server Log ❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:

"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.

TS Server Error Stack Server: semantic

Error: Debug Failure.
    at Object.releaseDocumentWithKey (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:114931:35)
    at Object.onReleaseOldSourceFile (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:138787:34)
    at Object.createProgram (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:100064:26)
    at synchronizeHostData (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:138755:26)
    at Proxy.getProgram (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:138847:13)
    at InferredProject.Project.updateGraphWorker (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143339:53)
    at InferredProject.Project.updateGraph (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143282:42)
    at ProjectService.assignOrphanScriptInfoToInferredProject (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:145178:25)
    at ProjectService.assignProjectToOpenedScriptInfo (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146672:26)
    at d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146929:97
    at Object.flatMap (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:465:25)
    at ProjectService.applyChangesInOpenFiles (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146929:41)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:147792:46)
    at d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149555:88
    at IOSession.Session.executeWithRequestId (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149546:28)
    at IOSession.Session.executeCommand (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149555:33)
    at IOSession.Session.onMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149579:35)
    at Interface.<anonymous> (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150895: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 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:13:11.295Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 2904)| |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: 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)|11.93GB (5.97GB free)| |Process Argv|| |Screen Reader|no| |VM|50%|
Extensions (17) Extension|Author (truncated)|Version ---|---|--- npm-intellisense|chr|1.3.0 path-intellisense|chr|2.2.1 vscode-deno|den|2.2.1 pug-formatter|duc|0.6.0 Vue2|duc|0.1.3 gitlens|eam|10.2.2 prettier-vscode|esb|5.6.0 beautify|Hoo|1.5.0 vscode-deno|jus|1.34.0 vscode-deno-extensionpack|jus|0.2.0 vscode-pugbeautify|mrm|1.0.2 vscode-language-pack-zh-hans|MS-|1.48.3 vscode-typescript-tslint-plugin|ms-|1.2.3 debugger-for-chrome|msj|4.12.10 vetur|oct|0.27.2 vscodeintellicode|Vis|1.2.10 vscode-icons|vsc|10.2.0
vscodebot[bot] commented 4 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

mjbvz commented 4 years ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled? Specifically try disabling the deno and tslint extensions which both have typescript language server plugins