-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Bug]: cargo uitest
fails with [E0463]: can't find crate for std
#324
Comments
cargo uitest
fails with [E0463]: can't find crate for
std``cargo uitest
fails with [E0463]: can't find crate for
std`
cargo uitest
fails with [E0463]: can't find crate for
std`cargo uitest
fails with [E0463]: can't find crate for std
cargo uitest
fails with [E0463]: can't find crate for std
cargo uitest
fails with [E0463]: can't find crate for \
std\``
cargo uitest
fails with [E0463]: can't find crate for \
std\``cargo uitest
fails with [E0463]: can't find crate for std
Thank you for the report! Have you been able to run Marker on a normal crate, or does that also happen there? |
Running |
Yes, that's what I meant. Then it seems to be a problem with the configuration of Marker's testing framework 🤔 I'm not quite sure what could cause it, but that's what debugging is for. Since it works on my Linux machine and the CI of that crate, I'm guessing that it has something to do with windows. @tigerros, would you mind running two tests for me?
That would be super helpful! |
I'm pretty sure I enabled logging in the first log... Anyway, same issue. Log
|
@xFrednet I believe I already saw this issue when debugging something unrelated long ago, but didn't think it would be reproducable outside of my debugging setup. The core problem is with custom handling of marker/marker_rustc_driver/src/lib.rs Lines 309 to 353 in e1dfde8
I don't remember the conditions under which the problem reproduces, and I'm not sure that's windows specific. Some combination of |
I had the feeling this code will come back to bite me. This way of getting the sysroot was taken from Clippy, with some refactorings for readability. I never use the Some months back, there was a PR in rustc to move this special handling code into rustc Checking Clippy's driver code, it looks like there is still some code to forward the Edit: I just looked it up, apparently the flag was added for cross compilation: rust-lang/cargo#2312 It might be used for other things as well, but that seems to be the origin. |
@tigerros We've created a release candidate for v0.4.3, which might fix the bug. Would you mind testing it on your machine? This is the install script for the release candidate. You might have to specify curl.exe -fsSL https://raw.githubusercontent.com/rust-marker/marker/v0.4.3-rc/scripts/release/install.ps1 | powershell -command - |
I think I figured out another problem... When I released v0.4.1 I accidentally did that from the master branch, which updated the used nightly toolchain. This update never made it to the master of the lint crate template. I'll fix that! Let's hope that fixes everything Edit: The upside of this mess, is that I learned to never release hotfix versions from the master branch again |
Okay, now everything should be back in order. Sorry 😅 |
@xFrednet It works. And yes, it's necessary to specify |
Perfect, thank you! |
Summary
I'm not positive that this is a bug, but running Marker on a different crate instead of testing does work, so I think something is wrong with the testing.
Reproducer
Windows 10
git clone https://github.com/rust-marker/lint-crate-template.git
cd lint-crate-template
cargo uitest
Using the latest nightly toolchain and latest Marker dependencies (
0.4.2
) doesn't help.Version
Logs
The text was updated successfully, but these errors were encountered: