Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Error: EMFILE: too many open files #550

Open
@cjblomqvist

Description

I'm running node using Visual Studio Community on Windows, and get a lot of

Error: EMFILE: too many open files

errors. More specifically, most trigger a

SourceMaps: could not preload for generated script

error. It's well known that you shouldn't try to open too many files simultaneously on Windows. Preferably, this would be refactored so that this is not parallelized to extreme (the default ceiling is 10k I believe?).

A suggestion is to use https://www.npmjs.com/package/graceful-fs instead of the built in fs package in utils: https://github.com/microsoft/vscode-chrome-debug-core/blob/master/src/utils.ts#L360

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions