microsoft / vscode

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

TS Server fatal error: Cannot read property 'indexOf' of undefined #117544

Closed KumarS-Naveen closed 3 years ago

KumarS-Naveen commented 3 years ago

Issue Type: Bug

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

TypeScript Version: 4.1.4

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 'indexOf' of undefined
    at Object.parsePackageName (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:39472:30)
    at ConfiguredProject.Project.enablePlugin (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151962:24)
    at ConfiguredProject.enablePluginsWithOptions (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152477:30)
    at ProjectService.loadConfiguredProject (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154206:25)
    at ProjectService.createAndLoadConfiguredProject (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154145:22)
    at ProjectService.createLoadAndUpdateConfiguredProject (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154150:36)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155055:44)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155395:97
    at Object.flatMap (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155395:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:156413:46)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158286:88
    at IOSession.Session.executeWithRequestId (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158277:28)
    at IOSession.Session.executeCommand (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158286:33)
    at IOSession.Session.onMessage (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158310:35)
    at Interface.<anonymous> (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:160520:27)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:329:10)
    at Interface._normalWrite (readline.js:474:12)
    at Socket.ondata (readline.js:186:10)
    at Socket.emit (events.js:315:20)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:271:9)
    at Socket.Readable.push (_stream_readable.js:212:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)

VS Code version: Code 1.53.1 (5d424b828ada08e1eb9f95d6cb41120234ef57c7, 2021-02-08T23:30:30.302Z) OS version: Windows_NT ia32 10.0.17134

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.89GB (6.00GB free)| |Process Argv|. --crash-reporter-id f6562674-c688-4972-9318-9363fa7bc305| |Screen Reader|no| |VM|0%|
Extensions (57) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|11.2.3 vscode-file-templates|bam|1.1.0 npm-intellisense|chr|1.3.1 path-intellisense|chr|2.3.0 codestream|Cod|10.6.0 dart-code|Dar|3.19.2 flutter|Dar|3.19.0 vscode-eslint|dba|2.1.14 javascript-ejs-support|Dig|1.3.1 githistory|don|0.6.14 gitlens|eam|11.2.1 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.16 vsc-material-theme-icons|equ|1.2.2 gitlab-workflow|Git|3.13.0 vscode-mocha-test-adapter|hbe|2.10.1 vscode-test-explorer|hbe|2.19.5 beautify|Hoo|1.5.0 vscode-power-mode|hoo|2.2.0 angular-essentials|joh|11.0.0 Angular2|joh|11.0.0 vscode-peacock|joh|3.9.1 vscode-add-angular-native-files|jos|0.0.11 vscode-icon-theme|jtl|1.6.6 theme-karyfoundation-themes|kar|20.0.3 regionfolder|map|1.0.12 Angular-BeastCode|Mik|10.0.3 vscode-azureappservice|ms-|0.20.0 vscode-docker|ms-|1.10.0 csharp|ms-|1.23.9 python|ms-|2021.2.582707922 jupyter|ms-|2021.2.576440691 azure-account|ms-|0.9.6 vscode-typescript-tslint-plugin|ms-|1.3.3 debugger-for-chrome|msj|4.12.12 debugger-for-edge|msj|1.0.15 angular2-inline|nat|0.0.17 nativescript|Tel|0.11.0 angular-console|nrw|16.0.2 material-icon-theme|PKi|4.5.0 java|red|0.75.0 vscode-xml|red|0.15.0 LiveServer|rit|5.6.1 sonarlint-vscode|Son|1.20.1 nativescript-xml-snippets|tsv|1.0.7 vscode-counter|uct|2.2.2 vscodeintellicode|Vis|1.2.11 vscode-java-debug|vsc|0.31.0 vscode-java-dependency|vsc|0.18.0 vscode-java-pack|vsc|0.12.1 vscode-java-test|vsc|0.28.0 vscode-maven|vsc|0.27.1 WebTemplateStudio-dev-nightly|WAS|0.5.2104801 better-align|wwm|1.1.6 nativescript-ng2-snippets|www|2.0.1 JavaScriptSnippets|xab|1.8.0 material-theme|zhu|3.9.15 (12 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 pythonvspyt617cf:30253240 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstry914:30256638 pythonvsdeb440:30248342 pythonvsded773:30248341 pythonvspyt875:30259475 pythontbcf:30260844 ```
gjsjohnmurray commented 3 years ago

/duplicate please update to 1.53.2