Skip to content

Sort error messages by file and line number #36229

Closed

Description

@solson

It would be more clear if error messages were printed out sorted. Say, by filename and then by line within a given file. Currently it seems like they are printed in the order they were emitted, which is mostly arbitrary.

cc @whitequark

Activity

  1. TimNN commented on Sep 3, 2016

    @TimNN
    Contributor

    Related: #32650.

  2. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    and removed
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Mar 9, 2017
  3. Mark-Simulacrum commented on Jun 4, 2017

    @Mark-Simulacrum
    Member

    Nominating for compiler team discussion, though I'm inclined to close for similar reasons as #32650 -- it seems unlikely to get implemented and largely impractical; and should be done by an external tool probably.

  4. nikomatsakis commented on Jun 8, 2017

    @nikomatsakis
    Contributor

    Discussed in the compiler team mtg. We agree with @Mark-Simulacrum's assessment. Going to close.

    Among other things, buffering up errors is not good (takes a long time to see anything), and in an IDE it's a moot point. I also think that ordering by filename/line is not always what you want either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions