Skip to content

LSP: Redundant error messages #939

Closed

Description

@lovettchris

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

Sometimes I get very redundant messages like this:

image

Steps to Reproduce

open List
theorem nil_is_empty (x : List α) : (nil = []) := rfl

Expected behavior:

should weed out redundant messages

Actual behavior:

no weeding

Reproduces how often:

100%

Versions

"leanprover/lean4:nightly-2022-01-05"

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Activity

  1. leodemoura commented on Jan 11, 2022

    @leodemoura
    Member

    I did not manage to reproduce the error. The error message for a file containing

    theorem nil_is_empty (x : List α) : (nil = []) := rfl

    is

    939.lean:1:37: error: unknown identifier 'nil'
    

    Could you please double-check the example at "Steps to Reproduce"?

  2. lovettchris commented on Jan 11, 2022

    @lovettchris
    Author

    sorry missed "open List" and added it to the repro

  3. leodemoura commented on Jan 11, 2022

    @leodemoura
    Member

    The error messages are not redundant. Note that there are not identical. The error messages are for implicit arguments that could not be synthesized. One for nil, one for [] (the other nil), and one for the equality application.

  4. leodemoura commented on Jan 17, 2022

    @leodemoura
    Member

    I am closing this issue since the error messages are not redundant.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions