Hello, I was normally coding in PROS, but when reopened my project a week later, all of the namespace reference (e.g pros::Motor) were showing as errors: name followed by ‘::’ must be a class or namespace name.
Why has this happened? I also created a new project and it did the same thing… without any changing to the default project.
Another note:
When I try to build the project, it shows this error: ERROR - pros.cli.build:make - Failed to make project: Exit Code 2 - pros-cli version:3.5.0
I have tried cleaning the project, to no effect.
Any help would be appreciated as we have UK nationals in a week.
Please run pros make all in the PROS integrated terminal and send the full error message. It seems like you have linker issues.
As for the reason why there are a lot of red squiggles (linter errors), microsoft has been updating stuff in their backend and it has essentially broken our support of Microsoft c/c++ linter. Please switch to clangd by LLVM and restart vscode (note that your code will need to be able to compile after this change for the red lines to go away).
This is the error when build it
Creating cold package with LemLib,libc,liblvgl,libm,libpros,okapilib [ERRORS]
followed by a mess of directories
followed by:
ERROR - pros.cli.build:make - Failed to make project: Exit Code 2 - pros-cli version:3.5.0
PROS-CLI Version: 3.5.0
PROS-Kernel Version: 3.8.0
Ok, switched to clangd, this works to get rid of the red squiggles.
When I make all I get this output:
Creating cold package with LemLib,libc,liblvgl,libm,libpros,okapilib [ERRORS]
followed by a mess of directories
followed by:
ERROR - pros.cli.build:make - Failed to make project: Exit Code 2 - pros-cli version:3.5.0
PROS-CLI Version: 3.5.0
PROS-Kernel Version: 3.8.0