-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Problem
Hi, I think I've found one case where warnings are still duplicated, or perhaps is a regression.
I'm using 1.62.1, and I see them doubled on Pycharm (up to date, with Rust plugin up to date).
To simulate, just create a new binary project, and insert any use:
use std::sync::Arc;
fn main() {
println!("Hello, world!");
}
Then, create a quick Run Configuration with cargo check --all-targets
:
Note the "1 warning" on the left, but doubled on the complete output.
Also note that Pycharm uses JSON: cargo check --color=always --message-format=json-diagnostic-rendered-ansi --all-targets
On the terminal, I can reproduce with the exact same command, but not with either cargo check --color=always --message-format=json-diagnostic-rendered-ansi
or cargo check --color=always --all-targets
, hence I think the problem is on the interaction between these two options.
Thanks!
Steps
- create a new bin project
- insert any
use
- in Run -> Edit Configurations, add a
cargo
one with command:check --all-targets
and your current workdir - run it (^R on macOS)
Possible Solution(s)
No response
Notes
No response
Version
No response