PROS Errors everywhere

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.

1 Like

Can you send a screenshot of the full error?

Issue 2 (build error):
image

Issue 1 (pros namespace not working), this persists throughout):

Can you send a picture of the PROS output tab when you try to build the program? Also do you have the Microsoft c/c++ extension installed in Vscode?

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).

2 Likes

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

Can you copy and paste the entire error, including the mess of directories please?

unfortunately, i cant as it over triples the character limit

Attach a screenshot of them then. Those “mess of directories” are the errors in your code. Without seeing them we cannot help you.

2 Likes


What’s in your include directory?

wait, how did you get rid of the squiggles? I had the same thing happen to my code today

also, are you on C++ 1.19.4 or 1.18.5 cause when i swapped to the older one, there was zero errors

Just switch to clangd (that fixed them for me but I wasn’t getting build errors, which I assume is happening to you).

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