microsoft / TypeScript

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

TS Server fatal error: Cannot read property 'startRecordingFilesWithChangedResolutions' of undefined #44026

Closed breggle closed 2 months ago

breggle commented 3 years ago

Issue Type: Bug

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

TypeScript Version: 4.3.0-dev.20210505

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

TypeError: Cannot read property 'startRecordingFilesWithChangedResolutions' of undefined
    at InferredProject.Project.updateGraph (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158141:38)
    at updateProjectIfDirty (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:159588:45)
    at Array.forEach (<anonymous>)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:161906:41)
    at c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:162192:97
    at Object.flatMap (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:515:25)
    at ProjectService.applyChangesInOpenFiles (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:162192:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:163247:46)
    at c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:165164:88
    at IOSession.Session.executeWithRequestId (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:165155:28)
    at IOSession.Session.executeCommand (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:165164:33)
    at IOSession.Session.onMessage (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:165190:35)
    at Interface.<anonymous> (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:167792:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

VS Code version: Code - Insiders 1.57.0-insider (fe23c2041f848d6c2f6bd27875112a37bcc82f84, 2021-05-06T05:16:25.564Z) OS version: Windows_NT x64 10.0.19042

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2112)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.84GB (2.98GB free)| |Process Argv|.\\eimp-portal-app\\ --crash-reporter-id 8788e6b4-6fd8-486e-8c10-4958532e3eac| |Screen Reader|no| |VM|0%|
Extensions (21) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.0.4 flutter-snippets|ale|2.0.0 dart-code|Dar|3.22.0 flutter|Dar|3.22.0 vscode-eslint|dba|2.1.20 gitlens-insiders|eam|2021.4.1805 prettier-vscode|esb|6.3.2 built-value-snippets|gia|1.2.0 headwind|hey|1.7.0 volar|joh|0.25.2 qwerty-learner|kai|0.1.1 background-cover|man|2.2.5 dotenv|mik|1.0.1 vscode-less|mrm|0.6.3 awesome-flutter-snippets|Nas|2.0.4 shader|sle|1.1.5 swdc-vscode|sof|2.5.13 vscode-stylelint|sty|0.86.0 errorlens|use|3.2.6 vim|vsc|1.20.2 material-theme|zhu|3.10.14 (1 theme extensions excluded)
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30291494 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30291487 pythontb:30258533 vspre833cf:30267465 pythonptprofiler:30281269 vsdfh931:30280409 vshan820:30294714 pythondataviewer:30285072 vscus158:30286553 pythonvsuse255:30296409 vscgsv2ct:30286873 vscorehovct:30295782 00j7a122:30294756 ```
vscodebot[bot] commented 3 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 3 years ago

@breggle Please try to fill in the issue template

sheetalkamat commented 3 years ago

Need the complete tsserver log showing the issue so that it can be analyzed since state of server is important for the investigation