Skip to content

Wrong error and warning underline positions on Windows #12293

Closed
@EFanZh

Description

@EFanZh

rust-analyzer version: ce9b174 2022-05-17 nightly

rustc version: 1.60.0 (7737e0b5c 2022-04-04)

I got wrong warning and error underline positions with CRLF line ending source files on Windows:

image

If I change file line ending to LF, then the underlines are shown at their correct positions:

image

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