-
Notifications
You must be signed in to change notification settings - Fork 2.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 doesn't always produce diagnostics #5560
Comments
@ehuss |
I don't know, someone on the cargo team will have to say. It's not clear how it should behave (for example, #5236 had the opposite reaction where they were surprised when it re-ran every time). There was some discussion of caching the diagnostics, but that is not an easy task. |
I believe @ehuss's diagnosis is spot on here. I think it'd be neat to explore options here but currently we have no way of buffering rustc's output and re-rendering it as rustc intended |
Coming from Go, I found this behavior really surprising: I expected to be able to run FWIW, in the As a user, I don't want to have to think about whether some tool I just ran (for example, an IDE hook) also happened to eat my build warnings as a side-effect. |
This behavior works really bad with my workaround for now is to only enable |
This sounds bad, but my workaround involved automating the deletion of |
This is causing a lot of frustration for our team - A lot of warnings have been missed because people forget and the compiler doesn't warn them if they haven't touched that code. The workaround is easy, but people don't want to do that before every build. A flag (--full or --rebuild or something similar) which rebuilds everything would be a start. for now. |
This has been implemented, closing in favor of the tracking issue #6986 which people can follow for the path to stabilization. |
Running
cargo check
will produce no output until a file is modified. The GIF shows this happening in the integrated terminal, but this also happens when running in a stand-alone terminal. Cargo will produce no errors when it fails to produce debug information.It will display diagnostic information only after the file is modified again. Is this intended behavior? If so, could there be a flag to force the re-generation of diagnostic information for the crate?
(Imgur link https://imgur.com/a/bohAtqk)
Version: cargo 1.27.0-nightly (9e53ac6 2018-05-07)
The text was updated successfully, but these errors were encountered: