-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Windows 8 is returning ERROR_INVALID_HANDLE instead of NotFound when opening a missing file #95154
Comments
I unfortunately don't have a Windows 8 box to test this on, but looking at the code, I have a theory which would explain the behavior you're seeing here, and I've now posted a fix for it here: #95158. |
This also happens on Windows 7 by the way. |
Confirming this on Windows 7, Windows 10 and 11 seems unaffected |
Yes, after updating to rustc 1.61.0-nightly (5f37001 2022-03-22) (from rustc 1.61.0-nightly (58f1179 2022-03-17)) issue seems fixed on Windows 7! Previously: > cargo fmt --check
Неверный дескриптор. (os error 6) Fixed nightly: > cargo fmt --check
Diff in \\?\H:\Projects\quick-xml\src\de\map.rs at line 198:
...skipped... |
I can confirm that as well. |
Thanks! Now we just need a confirmation for Windows 8, just to be sure :-). |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-high |
Confirmed this is resolved for Windows 8. Thanks! |
I tried this code:
I expected to see this happen: Runs without error.
Instead, this happened: On Windows 8, it fails with error:
This seems to have started with #94572, cc @sunfishcode.
This is causing
cargo new
to fail on Windows 8, cc rust-lang/cargo#10464This may also be responsible for rustc's incremental support to complain, though this doesn't always happen:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: