-
Notifications
You must be signed in to change notification settings - Fork 81
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 paths starting with \\?\<Drive Letter>
do not work
#132
Comments
I just ran into this error as well. This happens when a windows path in canonicalized via the standard library, resulting in a path that |
Noticed this same issue on Windows As a workaround, removing the prefix |
Note that removing the |
This issue is still prevalent and is causing the --target option of rustc to fail on windows. PS I:\DEVELOPER\PROJECTS\sus\proj\websocket_chat_rs> cargo b -Z build-std=std,core,panic_unwind --target x86_64-pc-windows-msvc.json
warning: `I:\DEVELOPER\PROJECTS\sus\proj\websocket_chat_rs\.cargo\config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
warning: unused manifest key: env
warning: unused manifest key: lib.target-feature
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `C:\Users\conno\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe - --crate-name ___ --print=file-names -C target-feature=+crt-static --cfg=no_global_oom_handling --target \\?\I:\DEVELOPER\PROJECTS\sus\proj\websocket_chat_rs\x86_64-pc-windows-msvc.json --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit code: 1)
--- stderr
error: target file "\\\\?\\I:\\DEVELOPER\\PROJECTS\\sus\\proj\\websocket_chat_rs\\x86_64-pc-windows-msvc.json" does not exist Unfortunately I have no control over the behaviour here and cannot simply "remove the prefix." |
Sorry but can you fill in some of the steps here? What does that have to do with the glob crate? Isn't that an issue with rustc itself? |
If you have a path
C:\foo*
, it works, but if you have a path with\\?\C:\foo*
, it doesn't return anything. The\\?\
is a valid path and works in other parts of the Rust std library.Workaround for now:
Strip
\\?\
from the beginning of the pathThe text was updated successfully, but these errors were encountered: