Skip to content

BackgroundIndex doesn't trigger on Windows due to case mismatch #42126

@sam-mccall

Description

@sam-mccall
Bugzilla Link 42781
Resolution FIXED
Resolved on Jul 26, 2019 10:42
Version unspecified
OS Linux
Blocks #41819
CC @zmodem
Fixed by commit(s) r367112

Extended Description

VSCode is probably the most common/best editor to use with clangd on windows, and always sends URIs with a lowercase drive letter (file://c:/...). Most tools produce compile_commands.json with an uppercase drive letter in paths.

In this combination, the background index will entirely fail to work, as clangd thinks the compile_commands.json doesn't correspond to the source files it covers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangd

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions