Skip to content
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

Don't die if a watched file is deleted #14

Closed
jtrussell opened this issue Feb 29, 2016 · 4 comments
Closed

Don't die if a watched file is deleted #14

jtrussell opened this issue Feb 29, 2016 · 4 comments

Comments

@jtrussell
Copy link
Owner

Kinda, annoying.

@jtrussell
Copy link
Owner Author

Note that this only seems to happen when the containing folder of a watched file is killed.

E.g.

buttle -w foo/bar.md

# separate process
rm -rf foo

# oh no! buttle crashed!

@jtrussell
Copy link
Owner Author

And here's what I get for a stack trace:

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: watch null EPERM
    at exports._errnoException (util.js:855:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1296:21)

@jtrussell
Copy link
Owner Author

Seems relevant: nodejs/node-v0.x-archive#4337

@jtrussell
Copy link
Owner Author

Note sure there's a great way to handle this... hmmm...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant