Skip to content

TS Server fatal error: Can't open file: No file descriptors available #188918

@arpanbhatt

Description

@arpanbhatt

Type: Bug

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

TypeScript Version: 5.1.6-sdk

Steps to reproduce crash

Open/Reload Vs-Code
Open any .tsx file
error: -> JS/TS server crashed 5 times

TS Server Log

❗️ Please review and upload this log file to help us diagnose this crash:

/Users/arpan.bhatt/Library/Application Support/Code/logs/20230726T172049/window1/exthost/vscode.typescript-language-features/tsserver-log-Z5TTIg/tsserver.log

The log file may contain personal data, including full paths and source code from your workspace. You can scrub the log file to remove paths or other personal information.

TS Server Error Stack

Server: semantic

Libzip Error: Can't open file: No file descriptors available
    at ZipFS.makeLibzipError (/Users/arpan.bhatt/web-code/.pnp.cjs:1628:25)
    at new ZipFS (/Users/arpan.bhatt/web-code/.pnp.cjs:1603:20)
    at ZipOpenFS.getZipSync (/Users/arpan.bhatt/web-code/.pnp.cjs:3793:18)
    at ZipOpenFS.makeCallSync (/Users/arpan.bhatt/web-code/.pnp.cjs:3673:17)
    at ZipOpenFS.watchFile (/Users/arpan.bhatt/web-code/.pnp.cjs:3636:17)
    at VirtualFS.watchFile (/Users/arpan.bhatt/web-code/.pnp.cjs:2842:24)
    at PosixFS.watchFile (/Users/arpan.bhatt/web-code/.pnp.cjs:2842:24)
    at NodePathFS.watchFile (/Users/arpan.bhatt/web-code/.pnp.cjs:2842:24)
    at fsWatchFileWorker (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8565:11)
    at /Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8209:15
    at createSingleWatcherPerName (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:7730:16)
    at pollingWatchFile (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8204:12)
    at watchFile2 (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8039:16)
    at watchMissingFileSystemEntry (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8297:14)
    at fsWatchHandlingExistenceOnHost (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8228:72)
    at /Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8218:15
    at createSingleWatcherPerName (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:7730:16)
    at fsWatch (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8213:12)
    at Object.watchFile2 [as watchFile] (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:8064:16)
    at watchFile (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:117812:67)
    at Object.watchFile (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:117881:92)
    at createFileWatcherWithLogging (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:117854:44)
    at Object.watchFile (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:117831:282)
    at ConfiguredProject2.watchAffectingFileLocation (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:174146:45)
    at createFileWatcherOfAffectingLocation (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:124355:108)
    at watchAffectingLocationsOfResolution (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:124321:7)
    at watchFailedLookupLocationOfResolution (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:124311:5)
    at Array.forEach (<anonymous>)
    at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:124387:19)
    at Map.forEach (<anonymous>)
    at Object.finishCachingPerDirectoryResolution (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:123972:42)
    at ConfiguredProject2.updateGraphWorker (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:174775:26)
    at ConfiguredProject2.updateGraph (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:174624:32)
    at ConfiguredProject2.updateGraph (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:175877:24)
    at _ProjectService.createLoadAndUpdateConfiguredProject (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:177516:13)
    at _ProjectService.assignProjectToOpenedScriptInfo (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:178608:26)
    at /Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:178888:64
    at flatMap (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:2573:17)
    at _ProjectService.applyChangesInOpenFiles (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:178888:24)
    at updateOpen (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:180091:29)
    at /Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:182664:69
    at IpcIOSession.executeWithRequestId (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:182656:14)
    at IpcIOSession.executeCommand (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:182664:29)
    at IpcIOSession.onMessage (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:182706:51)
    at IpcIOSession.onMessage (/Users/arpan.bhatt/web-code/.yarn/sdks/typescript/lib/tsserver.js:201:32)
    at process.<anonymous> (/Users/arpan.bhatt/web-code/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip/node_modules/typescript/lib/tsserver.js:184294:14)
    at process.emit (node:events:513:28)
    at process.emit (/Users/arpan.bhatt/web-code/.pnp.cjs:8885:25)
    at emit (node:internal/child_process:967:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.80.1 (74f6148, 2023-07-12T17:20:58.115Z)
OS version: Darwin arm64 22.5.0
Modes:

System Info
Item Value
CPUs Apple M2 Max (12 x 24)
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 2, 2
Memory (System) 64.00GB (27.40GB free)
Process Argv --crash-reporter-id 37c6873c-bec2-4fba-b333-ba841d13608a
Screen Reader no
VM 0%
Extensions (11)
Extension Author (truncated) Version
githistory don 0.6.20
prettier-vscode esb 9.19.0
githd hui 2.3.3
remote-containers ms- 0.299.0
remote-ssh ms- 0.102.0
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.80.2
vscode-remote-extensionpack ms- 0.24.0
remote-explorer ms- 0.4.1
remote-server ms- 1.3.0
vscode-laptop-companion Ube 1.0.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30792227
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30785052
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
e537b577:30795824
dsvsc013:30795093
dsvsc014:30797589

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions