-
Notifications
You must be signed in to change notification settings - Fork 12k
BroccoliTypescriptCompiler failed with EMFILE: too many open files #864
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
Comments
I'm running into this same issue. My setup is just about the same except it's not a freshly generated CLI project with a single service. In my case the project is a few months old with approximately 350 spec files and a lot of other code. |
I have the same issue with a newly created project using ng new. I dug a little bit more into the details, and it seems non-trivial to fix. Broccoli is assuming things are running synchronously so it's not trivial to queue up reading certain files (such as using graceful-fs). I've also done significant googling and the issue might be related to broccoli/ember-cli not doing proper cleanup on Windows. btw. I've tested both with Node 5.x and 6.x. Same issue. Quick workaround (at least for new projects in my scearnio) is to use --watch false flag or --build false. This works (I believe) since then not so many files are synchronously opened. |
I have the same problem (Win7 64) when I run tests (ng test). |
A workaround is to increase the ulimit: |
@maku Yeah, it doesn't error right out for me. However, I get EDIT: This seems to just be because of how pitifully slow my work computer is. If I disable the timeout, the tests do run, but they take quite a while. |
hmm, I was trying to solve this by doing a |
@JSMike even running with
doesn't do the trick |
I had the same problem, didn't work even with running in elevated. Watching this video: https://www.youtube.com/watch?v=wHZe6gGI5RY&list=PLOETEcp3DkCq788xapkP_OU-78jhTf68j&index=24. I tried running |
I was able to reproduce the EMFILE problem and am tracking it in #977. The only solution I have at the moment is to separately run Increasing the file limit via |
@filipesilva I am curious if you have found anything else ? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng --version
. If there's nothing outputted, pleaserun in a Terminal:
1.0.0-beta.5
do on your code? etc.
Created a new app with the CLI. Generated one service. Tried
ng test
. Got this error.more information.
The text was updated successfully, but these errors were encountered: