-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
cargo check failed but cargo run always work #86551
Comments
@pickfire Can you post the output from when |
The output for each occurence is different. But I only have the third day and one from last week, the two day before the third day the output is gone by now. A week before
Yesterday (third day)
|
I faced another issue today.
|
Another one today.
|
Seemed like
|
I had this issue again. From what I see, in helix. It happens always whenever I did a rebase or cherry-pick. I am not sure how to reproduce a minimum reproducible example. |
Lately I got these issues instead. Same issue but now the warnings are similar. If I removed the rmeta files myself, then it still have the same issue but for other crates.
|
I was regularly experiencing a similar issue with Rust 1.57.0, where sometimes after switching git branch some of the types and symbols One piece of the puzzle might be, that I recently started switching back and forth from developing on my main system and a Docker container where the folder is mounted without always cleaning the target directory. This might be incidental, but the times, where this started occurring and where I started sometimes switching to the docker container are pretty close. |
I seem to have the same problem, it's cause by use your_crate::fn;
extern crate your_crate; |
I can't reproduce this but it happens every day, 3 days in a row for me. When developing helix, after I checked out other commits using
git rebase
orgit revert
, quite a few time I docargo check
,cargo check
will always fail even thoughcargo run
works.Note that this happens in the past for me, but that was after switching features and not as often as getting it daily, but last time it was very rare for me, maybe once a few months like after upgrades or after version updates. But this happen daily just because I checked out different commits.
So the solution is to do
cargo clean
every time this happen, at least daily for me when working on helix project, note that I don't code so frequently but it happens very frequently whenever I switch commits. Maybe due to workspace? Or maybe due to git conflicts like<<<
? https://github.com/helix-editor/helixI expected to see this happen: if
cargo run
works,cargo check
should workInstead, this happened:
cargo check
failed always, then I triedcargo run
, it still failed, even after I fixed the errors,cargo check
failed butcargo run
can workMeta
rustc --version --verbose
:I haven't tried this on nightly. Not quite sure how to get a minimum reproducible bug but it happen quite often. If anything I can do please suggest any methods to help out.
The text was updated successfully, but these errors were encountered: