Skip to content

Error when ulimit is reached Mac #2

@3rd-Eden

Description

@3rd-Eden

When you are watching huge folders, like a big ass node_modules folder you will probably hit the ulimit / inotify limit on mac osx.. We currently die hard when this happens.

fs.js:837
    throw errnoException(errno, 'watch');
          ^
Error: watch EMFILE
    at errnoException (fs.js:806:11)
    at FSWatcher.start (fs.js:837:11)
    at Object.fs.watch (fs.js:861:11)
    at Notify.watch (/Users/V1/Projects/observing/square/node_modules/fs.notify/notify.js:93:42)
    at Array.forEach (native)
    at Notify.add (/Users/V1/Projects/observing/square/node_modules/fs.notify/notify.js:44:11)
    at _filter (/Users/V1/Projects/observing/square/node_modules/async/lib/async.js:236:13)
    at async.forEach (/Users/V1/Projects/observing/square/node_modules/async/lib/async.js:94:25)
    at _filter (/Users/V1/Projects/observing/square/node_modules/async/lib/async.js:233:17)
    at Object.fs.exists [as oncomplete] (fs.js:91:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions