-
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
Invalid handle problem #10464
Comments
Hmm... Just found a similar issue from Windows official support site, though it may or may not be relevant to what you reported. Could you test against stable/beta channel to see if the problem still occurs? |
Thank you for your answer. I haven't yet tried that "solution" because it doesn't seem for Windows 8.1. But I've tried both beta and stable and there is no problem for both versions: No problem with:
No problem with:
While there's the problem with the last Nightly (but it could be a bit older). So now I suspect this is a real cargo bug. |
I've tried cargo nightly on another Windows system and this works:
|
Now it gives me a different error:
Using the latest Nightly:
|
It seems like the Besides, I found a suspect1 and it was fixed2 and released with libgit2 v1.4.2. In short, it fails when there is no "Git for Windows" installed in your system. If you are available, could you install Git for Windows and try again? I'll try to send a patch later on. Footnotes |
After installing "Git for Windows" I'm back to the "Error 6 - The handle is invalid" (now using the latest cargo 1.61.0-nightly 65c8266 2022-03-09). |
I've done some bisection, and the first rust/cargo Nightly that gives that Error 6 is:
|
I can confirm that the issue can be worked around with
|
@weihanglo Can you post a PR to update git2/libgit2-sys to see if that will resolve the problem? |
I've updated Nightly, with the Cargo improvements, so far no change. |
I tracked down the issue to rust-lang/rust#95154 |
Now it's fixed, thank you :) |
Problem
I am not sure if it's really Cargo's fault, perhaps it's just an unknown problem in my system. Since few days I'm having a problem with Cargo on Windows. (I've used for years Cargo on the same system with no problems). If I try to create the project "test1" cargo gives me (the same error is generated if I run it as administrator):
Steps
cargo new test1
Possible Solution(s)
No response
Notes
I am using:
(rustc and rustup work well, I can update the Nightly compiler with no problems).
Version
The text was updated successfully, but these errors were encountered: