-
Notifications
You must be signed in to change notification settings - Fork 162
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
sync crashing on nofile #57
Comments
same error |
Interesting, thanks for posting this. It's definitely not something I've experienced (though I don't use Emacs). I think I see what's going on here, but as I'm not experiencing this, it might be tough to reproduce, but at the very least, I've noticed one problem with the code, so I can start there, and if that doesn't fix it, I can install emacs and EDTS to see what I'm able to uncover. Thanks again for the report and the confirmation. |
Just an idea: It might also the symlinks created by "relx -d" that is the problem. |
I am having the same issue and using sync with rebar3 so also using relx. |
Thanks for all the confirmation, guys. I haven't yet had a chance to do much open-source work these past few months (I've been in a bit of a crunch mode), but as soon as my schedule clears up a bit, I'll be able to put out a fix for this. The immediate hacky fix would be to add another error clause to https://github.com/rustyio/sync/blob/master/src/sync_scanner.erl#L500 and see if that solves the problem. I'm not entirely sure what the correct approach should be to handle if it returns {error, nofile} like it's doing, but my suspicion would be to just generate a warning and see how prevalent the problem is. That said, I've noticed that https://github.com/rustyio/sync/blob/master/src/sync_scanner.erl#L498 and https://github.com/rustyio/sync/blob/master/src/sync_scanner.erl#L524 are being called redundantly, which seems to be a problem, but probably unrelated to this particular error. |
In my case, it happens for Yaws compilation of files. I have not fixed it, it just tells me when it fails. I use embedded yaws. |
Really like sync. I am also using EDTS for Emacs, and I think there are some strange interactions.
The core issue is
i.e. the beam file is missing. Most likely, it is recompiled by "someone else".
I tried making a simple patch to wait 1000ms and retry, but didn't solve. it.
Most often, the failure is recovered, but sometimes, it takes the erlang down, as seen below.
The text was updated successfully, but these errors were encountered: