Skip to content

Diagnostics not found for buffer on Windows #343

@Ruin0x11

Description

@Ruin0x11

It seems that buffer-file-name on Windows makes the leading drive letter lowercase (c:/foo), while diagnostics reported by servers could have the drive letter uppercase (file:///C:/foo). Since equal is used to test equality inside the hash for diagnostics in lsp-mode, diagnostics won't be found when looking for buffer-file-name in the diagnostics hash. Since this is Windows-specific behavior and ignoring case would be an issue on operating systems where case-sensitivity is an issue, I think this should be an extra case to handle specially when trying to find diagnostics for a buffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions