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 properties of undefined (reading 'removeResolutionsOfFile') #184240

Closed
rotimi-best opened this issue Jun 3, 2023 · 3 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@rotimi-best
Copy link

We have written the needed data into your clipboard because it was too large to send. Please paste.

Type: Bug

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

TypeScript Version: 4.7.3

Steps to reproduce crash
1.
2.
3.

Global TS Server Plugins

  • typescript-deno-plugin
  • typescript-svelte-plugin

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 properties of undefined (reading 'removeResolutionsOfFile')
    at ConfiguredProject.Project.removeFile (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:169513:42)
    at ConfiguredProject.project.removeFile (/Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/module-loader.js:74:16)
    at ProjectSvelteFilesManager.removeFileFromProject (/Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/project-svelte-files.js:121:26)
    at /Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/project-svelte-files.js:127:65
    at Map.forEach (<anonymous>)
    at ProjectSvelteFilesManager.disposeWatchersAndFiles (/Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/project-svelte-files.js:127:42)
    at ProjectSvelteFilesManager.dispose (/Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/project-svelte-files.js:131:14)
    at /Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/index.js:93:185
    at Proxy.ls.dispose (/Users/rotimibest/.vscode/extensions/svelte.svelte-vscode-107.5.1/node_modules/typescript-svelte-plugin/dist/src/language-service/index.js:82:9)
    at ConfiguredProject.Project.close (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:169364:38)
    at ConfiguredProject.close (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:170777:40)
    at ProjectService.removeProject (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:171838:25)
    at /private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173708:86
    at Map.forEach (<anonymous>)
    at ProjectService.removeOrphanConfiguredProjects (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173708:44)
    at ProjectService.cleanupAfterOpeningFile (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173652:22)
    at ProjectService.applyChangesInOpenFiles (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173856:26)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174983:46)
    at /private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177172:88
    at IpcIOSession.Session.executeWithRequestId (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177163:28)
    at IpcIOSession.Session.executeCommand (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177172:33)
    at IpcIOSession.Session.onMessage (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177198:35)
    at process.<anonymous> (/private/var/folders/9z/1vtckw8j2b3g8h2pqj6llj600000gn/T/AppTranslocation/7253D02D-72C3-4C5B-A271-8A0811EC8A03/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179833:31)
    at process.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.70.2 (Universal) (e4503b3, 2022-08-16T05:36:37.829Z)
OS version: Darwin x64 22.3.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 32.00GB (0.81GB free)
Process Argv --crash-reporter-id 2983d9ac-6e3c-4f88-ab37-51d85da111c6
Screen Reader no
VM 0%
Extensions (23)
Extension Author (truncated) Version
svelte-intellisense ard 0.7.1
vscode-tailwindcss bra 0.9.11
simple-react-snippets bur 1.2.7
vscode-svgviewer css 2.0.0
vscode-eslint dba 2.4.0
vscode-faker dee 2.0.0
vscode-deno den 3.19.1
githistory don 0.6.19
es7-react-js-snippets dsz 4.4.3
gitlens eam 12.2.2
prettier-vscode esb 9.13.0
go gol 0.38.0
rbs-syntax Gra 0.3.0
highlight-string-code iuy 0.4.5
pomodoro lky 1.1.3
git-graph mhu 1.30.0
vsliveshare ms- 1.0.5762
material-icon-theme PKi 4.28.0
quicktype qui 12.0.46
vscode-yaml red 1.13.0
LiveServer rit 5.7.9
svelte-vscode sve 107.5.1
alphabetical-sorter ue 2.0.1

(4 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627cf:30244335
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
showlangstatbar:30737416
pythonms35:30701012
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30730052
pythongtdpathcf:30739705

@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.78.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@mjbvz
Copy link
Collaborator

mjbvz commented Jun 5, 2023

This seems caused by typescript-svelte-plugin Please start by filing an issue against them

@mjbvz mjbvz added the *caused-by-extension Issue identified to be caused by an extension label Jun 5, 2023
@VSCodeTriageBot
Copy link
Collaborator

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants