-
Notifications
You must be signed in to change notification settings - Fork 638
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
ungit crashes with rapid file system modification #1524
Comments
Nodegit uses node-watch which does filter ignored dirs, so either that isn't working or you have an old version? The race itself is interesting, why would it stat the file? Maybe it's a bug in node-watcher, trying to determine what the change is? A full stack dump would be useful. Also, try to repro in bash with touch and rm. |
Would be nice to get a stacktrace for this. Might be related to yuanchuan/node-watch#108 |
Ungit version Stacktrace:
Can't seem to reproduce this using touch and rm (or mkdir and |
right, this seems like a bug with node-watch, where it tries to watch newly created folders but they're already removed by the time it gets to it. Mostl likely the bug is here https://github.com/yuanchuan/node-watch/blob/5743e51a861bfe3d372a99dd388626b324905065/lib/watch.js#L302-L317 @campbellcole would you mind opening an issue on node-watch? |
@wmertens will do. Thanks for your time 😃 |
(This problem has only come up for me with Rust projects, due to the nature of the build procedure)
To reproduce easily:
cargo new ungit_poc
cd ungit_poc && ungit
cargo check
orcargo build
Ungit crashes with an error similar to:
This happens because the
target
directory is extremely volatile during compilation/checking, and ungit doesn't seem to be written in such a way that handles extremely rapid filesystem mutation.There are two ways to fix this:
The text was updated successfully, but these errors were encountered: