Skip to content

Duplicated warnings in JetBrains editors #10904

@rsalmei

Description

@rsalmei

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:
image

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

  1. create a new bin project
  2. insert any use
  3. in Run -> Edit Configurations, add a cargo one with command: check --all-targets and your current workdir
  4. run it (^R on macOS)

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions