Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
magwojtek opened this issue Feb 10, 2021 · 3 comments
Closed

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

magwojtek opened this issue Feb 10, 2021 · 3 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@magwojtek
Copy link

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 (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:39472:30)
    at ConfiguredProject.Project.enablePlugin (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:151962:24)
    at ConfiguredProject.enablePluginsWithOptions (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:152477:30)
    at ProjectService.loadConfiguredProject (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154206:25)
    at ProjectService.createAndLoadConfiguredProject (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154145:22)
    at ProjectService.createLoadAndUpdateConfiguredProject (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154150:36)
    at ProjectService.assignProjectToOpenedScriptInfo (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:155055:44)
    at /snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:155395:97
    at Object.flatMap (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:155395:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:156413:46)
    at /snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158286:88
    at IOSession.Session.executeWithRequestId (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158277:28)
    at IOSession.Session.executeCommand (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158286:33)
    at IOSession.Session.onMessage (/snap/code/54/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158310:35)
    at Interface.<anonymous> (/snap/code/54/usr/share/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 (5d424b8, 2021-02-08T23:30:54.166Z)
OS version: Linux x64 5.8.0-43-generic snap

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2599)
GPU Status 2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 7, 6, 5
Memory (System) 15.51GB (3.05GB free)
Process Argv --force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id 225b765c-c08c-49ae-80e9-f0a838258b38
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Extensions (47)
Extension Author (truncated) Version
vscode-openapi 42C 3.10.0
swagger-viewer Arj 3.0.1
vscode-browser-preview auc 0.6.7
path-intellisense chr 2.3.0
vscode-postgres cko 1.1.17
vscode-eslint dba 2.1.14
javadebugger don 0.1.5
gitlens eam 11.2.1
tslint eg2 1.0.44
prettier-vscode esb 5.9.1
auto-rename-tag for 0.1.6
code-runner for 0.11.2
todo-tree Gru 0.0.196
rest-client hum 0.24.4
graphql-for-vscode kum 1.15.3
cql Law 0.8.7
vscode-mocha-sidebar mat 0.22.2
vscode-azureappservice ms- 0.20.0
vscode-azurefunctions ms- 1.2.1
vscode-docker ms- 1.9.1
csharp ms- 1.23.9
python ms- 2021.1.502429796
vscode-pylance ms- 2021.2.0
jupyter ms- 2020.12.414227025
remote-containers ms- 0.158.0
remote-ssh ms- 0.63.0
remote-ssh-edit ms- 0.63.0
remote-wsl ms- 0.53.4
vscode-remote-extensionpack ms- 0.20.0
azure-account ms- 0.9.5
powershell ms- 2020.6.0
quicktype qui 12.0.46
java red 0.74.0
vscode-yaml red 0.14.0
LiveServer rit 5.6.1
rust rus 0.7.8
scala sca 0.5.1
code-settings-sync Sha 3.4.3
pdf tom 1.1.0
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
quokka-vscode Wal 1.0.342
JavaScriptSnippets xab 1.8.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspyt653:30253241
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30211401
vstry244:30250195
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30251590

@gjsjohnmurray
Copy link
Contributor

/duplicate

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants
@gjsjohnmurray @magwojtek and others