Closed
Description
I am using Stack on Mac El Capitan with resolver lt-5.10. I ran into
stack build --file-watch
and it ran a few times before giving this errors:
user error (could not create file system event stream)
and
/usr/local/bin/ghc-pkg: streamingProcess: runInteractiveProcess: pipe: resource exhausted (Too many open files)
after running a few successful sessions. I am not totally sure if the default limit set was too low or the file-watch just does not clean up things as it should. In any case, I decided to fix it by increasing the ulimit by following the steps in this blog:
It gets back to a working state again. But again, not totally sure if this is the right solution. Thanks for your help.