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: Can't open file: No file descriptors available #184424

Closed
ghost opened this issue Jun 6, 2023 · 1 comment
Closed

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

ghost opened this issue Jun 6, 2023 · 1 comment
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@ghost
Copy link

ghost commented Jun 6, 2023

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

TypeScript Version: 5.0.4-sdk

Steps to reproduce crash

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

Libzip Error: Can't open file: No file descriptors available
    at ZipFS.makeLibzipError (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:129562:25)
    at new ZipFS (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:129537:20)
    at ZipOpenFS.getZipSync (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:131727:18)
    at ZipOpenFS.makeCallSync (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:131607:17)
    at ZipOpenFS.watchFile (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:131570:17)
    at VirtualFS.watchFile (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:130776:24)
    at PosixFS.watchFile (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:130776:24)
    at NodePathFS.watchFile (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:130776:24)
    at fsWatchFileWorker (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8597:11)
    at /Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8243:15
    at createSingleWatcherPerName (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:7764:16)
    at pollingWatchFile (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8238:12)
    at watchFile2 (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8073:16)
    at watchMissingFileSystemEntry (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8331:14)
    at fsWatchHandlingExistenceOnHost (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8262:72)
    at /Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8252:15
    at createSingleWatcherPerName (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:7764:16)
    at fsWatch (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8247:12)
    at Object.watchFile2 [as watchFile] (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:8098:16)
    at watchFile (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:117063:67)
    at Object.watchFile (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:117082:284)
    at ConfiguredProject2.watchAffectingFileLocation (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:171901:45)
    at createFileWatcherOfAffectingLocation (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:123351:106)
    at watchAffectingLocationsOfResolution (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:123317:7)
    at watchFailedLookupLocationOfResolution (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:123307:5)
    at Array.forEach (<anonymous>)
    at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:123383:19)
    at Map.forEach (<anonymous>)
    at Object.finishCachingPerDirectoryResolution (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:122965:42)
    at ConfiguredProject2.updateGraphWorker (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:172443:26)
    at ConfiguredProject2.updateGraph (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:172377:32)
    at ConfiguredProject2.updateGraph (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:173559:24)
    at _ProjectService.createLoadAndUpdateConfiguredProject (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:175190:13)
    at _ProjectService.assignProjectToOpenedScriptInfo (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:176283:26)
    at /Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:176563:64
    at flatMap (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:2556:17)
    at _ProjectService.applyChangesInOpenFiles (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:176563:24)
    at updateOpen (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:177731:29)
    at /Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:180298:69
    at IpcIOSession.executeWithRequestId (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:180290:14)
    at IpcIOSession.executeCommand (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:180298:29)
    at IpcIOSession.onMessage (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:180340:51)
    at IpcIOSession.onMessage (/Users/dhruvil.lakhtaria/web-code/.yarn/sdks/typescript/lib/tsserver.js:201:32)
    at process.<anonymous> (/Users/dhruvil.lakhtaria/web-code/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip/node_modules/typescript/lib/tsserver.js:181915:14)
    at process.emit (node:events:513:28)
    at process.emit (/Users/dhruvil.lakhtaria/web-code/.pnp.cjs:136869:25)
    at emit (node:internal/child_process:958:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 6, 2023

Based on the call stack, this seems to be caused by pnp. Please start by filing the issue against them

@mjbvz mjbvz closed this as completed Jun 6, 2023
@mjbvz mjbvz added the *caused-by-extension Issue identified to be caused by an extension label Jun 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 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

1 participant