Skip to content

updating compile_commands.json cause error message and indexing freezes. #4058

Closed
@mdzahidh

Description

@mdzahidh

Describe the bug

  • OS and Version: Linux and Windows
  • VS Code Version: 1.37.0-insider
  • C/C++ Extension Version: 0.25.0-insiders

To Reproduce
When you update compile_commands.json while vscode is running, cpptools gives out error saying ""${workspaceFolder}/compile_commands.json" could not be parsed. 'includePath' from c_cpp_properties.json will be used instead.", sometimes multiple times, and the indexing either takes very long or freezes (the red flame turns on indefinitely), which also freezes all code intellisense.

Expected behavior
cpptools should pick up changes in compile_commands.json after the file has been fully updated and re-indexing shouldn't freeze.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Compile CommandsbugfixedCheck the Milestone for the release in which the fix is or will be available.insidersCurrently only repros with our latest Insiders release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions