C_cpp_properties.json Not Working with C/C++ Extension in Latest Cursor (v0.51.2)

Bug Report: c_cpp_properties.json Not Working with C/C++ Extension in Latest Cursor (v0.51.2)

Environment:

  • Cursor Version: v0.51.2

  • C/C++ Extension Version: 2.0.1

  • OS: Ubuntu 20.04.6 LTS (Remote SSH on Linux)

Description:
After updating to Cursor version v0.51.2, the c_cpp_properties.json file is no longer functioning as expected with the C/C++ extension (v2.0.1). My C project cannot locate variable definitions, despite everything working fine before the update.

I noticed that the extension requires Cursor version v0.52 to function correctly. However, even though I have enabled the “Early access to new Cursor updates,” I am unable to receive the v0.52 update. This issue is currently blocking my normal workflow.




Request:
Please provide a solution or guidance on how to obtain the required v0.52 version update for Cursor to restore the functionality of the C/C++ extension.

1 Like

Hi @cgy233, could you try reinstalling the VSCode C++ extension (ms-vscode.cpptools), and disable or uninstall the Anysphere extension (anysphere.cpptools). Attaching a screenshot for the one you’ll want:

The Anysphere extension depends on ClangD for LSP support, which requires a compile_commands.json rather than a c_cpp_properties.json. The VSCode extension will read the c_cpp_properties.json for LSP support.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.