-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cargo check fails due to error: 'Only tuple has tuple field' #19543
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
Comments
Are you sure it's related to the logged error? I can't see how that'll impact that. |
Were you able to reproduce the bug, and did it affect cargo check in RA on your end? I can’t say with certainty that this logged error is directly causing cargo check to fail, but I’m simply reporting what I’ve observed when the error occurs. Let me know if there's anything else I can provide to help. |
@ChayimFriedman2 Sorry for pinging you, but I was wondering if you have any update on whether you were able to reproduce this bug? Thank you! |
Sorry, I didn't find the time for this. Now I tried it and couldn't reproduce. I did have a lot of "Only tuple has tuple field" logs (which as I said, shouldn't impact development), but check on save works normally. |
Ok thanks for confirming that it's not related to the error in the logs. I'm not sure what could be breaking cargo check save feature. Other people have reported this issue too btw. Do you have any suggestions on next steps for troubleshooting this problem? |
rust-analyzer version: rust-analyzer version: 0.3.2370-standalone (588948f 2025-04-06)
rustc version: rustc 1.84.1 (e71f9a9a9 2025-01-27)
editor or extension: VSCode extension version 0.3.2370
code snippet to reproduce:
Cargo.toml
lib.rs
schema.rs
models.rs
Remove or comment out one of the fields in the Post struct. RA reports the same error multiple times in the 'Output' pane in VSCode:
Then whenever I try to save the file,
cargo check
fails to run and no more new compile time errors/warnings get displayed in the text editor. Other features of RA work such as completions and syntax error detection.The text was updated successfully, but these errors were encountered: