Skip to content

Add VSCode command to show the rustc --explain EXXXX output #14280

Open
@ivangabriele

Description

@ivangabriele

Here is a user story example:

  1. I use VSCode.
  2. I have a compilation (analysis) error.
  3. This error has an explanation code (For more information about this error, try `rustc --explain EXXXX`.).
  4. I open the command palette and run the command rust-analyzer: Explain.
  5. It opens a new tab containing the rustc --explain EXXXX output.

There are other considerations to take into account:

  • multiple errors
  • (rather?) add it in code actions
  • how would that reflect in other IDEs/text editors?

If this feature is acceptable (and once the specs would be agreed upon), I could try to contribute by working on it but I must warn that I'm a beginner in Rust, so that would take some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingC-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions