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
Projects with over 100 files or so throw an EMFILE error #1
Comments
Actually, looks like my project is even bigger than readFileSync can handle. :-\ |
Okay - well this will need looking at - the file handles should be closed (I'm surprised you're getting this actually, I'm working on fairly large projects myself) |
(And by need looking at, I'll look at it now :-)) |
I don't think this is an issue with large projects, I've done a test with over 1000 files and it works well. There IS a bug here clearly - just don't know where! Very annoying |
If it makes a difference, I'm on a superfast SSD. Might have something to do with it. It looks like since everything is running asynchronously, it's opening hundreds of files at once and getting hung up. |
That could cause it (crikey), although all of my machines are on SSD I'm currently on the MBA rather than my crazy beast - surprised in that case that the synchronous calls don't work as a fix. I guess I can put a limit in to throttle the number of concurrent actions, shouldn't be too hard to code up. |
Solution is to rejigger handlers.js to use fs.readFileSync().
The text was updated successfully, but these errors were encountered: