-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
intermittent "an unknown error occurred" #1913
Comments
Do you happen to have Cargo running in the background as well? Currently concurrent invocations of Cargo will generally result in badness. Otherwise yeah unfortunately this isn't very actionable without a better backtrace of what happened. |
Not intentionally but it's possible Atom was running it in the background. Could we add a lockfile or something to make this less confusing? |
It's largely just a hunch of mine, you're more likely to see compile errors from concurrent Cargo invocations than Cargo errors itself, but that's tracked by #354 as well. Just want to confirm it's a dupe before closing this one |
I'll turn that off and see if I can reproduce this. |
@alexcrichton why didn't we merge alexcrichton@dbbc696 ? |
It was an experiment that didn't end up panning out on all platforms for various reasons if I remember correctly, but I unfortunately don't precisely remember why any more. |
Semaphores won't work over NFS or other network filesystems. If you don't care about NFS, most of the objections in http://0pointer.de/blog/projects/locking.html go away and you can use I think actually the least worst option is probably a file existence lock holding the running cargo's pid. It has the substantial advantage you can tell the user |
I think this is a dupe and it looks like Byron has a patch well underway, so great. |
On OS X 10.10.4, with
I get a few times a day:
Unfortunately the error goes away when I re-run with or without
--verbose
. I guess I should just use it every time until I get more info.The text was updated successfully, but these errors were encountered: