Hi. So after I wake up after hibernation and open up my VS code project, I get this: (one with million errors)
So it turns out that my C++ extension is failing to recognize #include files. I tried reinstalling VS code and the extension, but it doesn’t solve the issue. After further inspection, I think I realize why VS code is acting fishy: (one with terminal lines)
It seems like VS code has trouble adjusting compiler settings based on the PROS compiler. I have tried to reinstall this as well, but it didn’t work either. I have no clue what to do from here, but I’m assuming there is something wrong with the PROS extension, can anyone help me out?
I am using Windows 11 with latest VS code version. Ill also show my c_cpp_properties.json file if that helps:
{
"configurations": [
{
"name": "PROS Project",
"includePath": [
"${workspaceFolder}/**",
"c:\\Users\\[my name]\\OneDrive\\Documents\\vex-robotics-team-d\\include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "c:\\Users\\[my name]\\AppData\\Roaming\\Code\\User\\globalStorage\\sigbots.pros\\install\\pros-toolchain-windows\\usr\\bin\\arm-none-eabi-g++",
"cStandard": "gnu11",
"cppStandard": "gnu++20",
"intelliSenseMode": "gcc-arm",
"compileCommands": "c:\\Users\\[my name]\\OneDrive\\Documents\\vex-robotics-team-d\\compile_commands.json",
"browse": {
"path": [
"c:\\Users\\[my name]\\OneDrive\\Documents\\vex-robotics-team-d"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}