I upgraded to 0.45.6 and it created some issues (was already, on 0.45.x, 95% sure it was 0.45.5).
The issue is that Intellisense in C++ stopped working.
I am getting these types of errors in the Problems tab:
“#include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit (…).”
I didn’t change compile_commands.json and I double-checked its contents are correct. However, looking at “C_Cpp › Default: Include Path” in the Settings editor, it had changed and was now empty. This is very strange because .vscode/c_cpp_properties.json had not changed and had the right directories in there. Seems cursor is not picking that file up for some reason?
I tried adding the include directories again in the UI, and even though they persist they don’t affect .vscode/c_cpp_properties.json. And what is worse they don’t fix the intellisense issue.
Any suggestions? Is there a way to downgrade back to 0.45.5 - I couldn’t figure out how.
After banging my head on the wall many times, I’ve figured it out. It’s not a Cursor issue at all, it is a big in the C/C++ VS Code extension. I wasn’t seeing it VS Code because I was using an older version of the extension.
This is the bug:
Downgrading the C/C++ extension to previous version fixed it!