Skip to content

Some errors cause ridiculously long highlighted spans in the IDE #68

@johnw42

Description

@johnw42

Situation:

I'm using duplicate to test some hairy code involving From/TryFrom trait implementations. When I run into an error, I frequently get an error highlight in the IDE that covers everything from the substitution table up to the point where the actual error occurred. It's very distracting.

Reproduction:

I'm about to create a PR with a unit test that demonstrates the problem, plus changes to fix it.

Expected Behavior:

Ideally I'd like to see an error on the line in the substitution table that triggered the problem, plus a separate error where the problem was detected, but the second error is more important.

Affected Versions:

Found in 2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-discussionA decision (D) has not been made yet and is open to discussionI-bugThis issue (I) regards a (potential) bug in the projectT-acceptedTriage (T): Initial review accepted issue/PR as valid

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions