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 #116257

Closed
murakami-marco opened this issue Feb 10, 2021 · 2 comments
Closed
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@murakami-marco
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 (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:39472:30)
    at ConfiguredProject.Project.enablePlugin (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:151962:24)
    at ConfiguredProject.enablePluginsWithOptions (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:152477:30)
    at ProjectService.loadConfiguredProject (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154206:25)
    at ProjectService.createAndLoadConfiguredProject (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154145:22)
    at ProjectService.createLoadAndUpdateConfiguredProject (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154150:36)
    at ProjectService.assignProjectToOpenedScriptInfo (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:155055:44)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:155395:97
    at Object.flatMap (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:155395:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:156413:46)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158286:88
    at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158277:28)
    at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158286:33)
    at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:158310:35)
    at Interface.<anonymous> (/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-7630-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2700)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 15.27GB (5.70GB free)
Process Argv --no-sandbox --unity-launch --crash-reporter-id c493cf2d-7da9-4e0b-b4d3-19800006bd2c
Screen Reader no
VM 0%
DESKTOP_SESSION /usr/share/xsessions/plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE x11
Extensions (39)
Extension Author (truncated) Version
QML bbe 1.0.0
npm-intellisense chr 1.3.1
path-intellisense chr 2.3.0
gitignore cod 0.6.0
bracket-pair-colorizer-2 Coe 0.2.0
vscode-simpler-icons dav 1.6.5
vscode-eslint dba 2.1.14
githistory don 0.6.14
python-extension-pack don 1.6.0
vscode-npm-script eg2 0.3.15
prettier-vscode esb 5.9.1
auto-close-tag for 0.5.10
code-runner for 0.11.2
go gol 0.22.1
gop gop 0.7.1
MagicPython mag 1.1.0
rainbow-csv mec 1.8.1
dotenv mik 1.0.1
vscode-docker ms- 1.9.1
python ms- 2021.1.502429796
vscode-pylance ms- 2021.2.0
jupyter ms- 2020.12.414227025
vsliveshare ms- 1.0.3629
vsliveshare-audio ms- 0.1.91
vsliveshare-pack ms- 0.4.0
go-doc msy 1.0.1
vscode-sundial muu 2.3.0
indent-rainbow ode 7.5.0
leaper Onl 0.6.0
material-icon-theme PKi 4.5.0
vscode-yaml red 0.14.0
glassit s-n 0.2.3
code-settings-sync Sha 3.4.3
autoimport ste 1.5.3
ayu tea 0.20.1
vscodeintellicode Vis 1.2.11
vscode-todo-highlight way 1.0.4
vscode-go-autotest win 1.6.0
material-theme zhu 3.9.13

(4 theme extensions excluded)

@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
@murakami-marco @gjsjohnmurray and others