VSCODE syntax error

I have a 3D printer that has firmwear to run mainboard. To tweak the firmware VSCODE is used, I believe C++ ? Im as green of C++ . Every time I compile. I get a Syntax Error: INVALID SYNTAX Enviroment : LPC1769 STATUS : FAILED "THE terminal process "C:\users\MACK9\.platformio\penv\scripts\platformio.exe 'run' " terminated with exit code 1.

Terminal will be reused by tasks, press any key to close it.

VScode I'm useing 1.65.2
Marlin 2.0


HELP What am I to do to get this "fixed"?
You need to provide more information to get useful advices!

What is the source code you are trying to compile and where did you get it? Which C++ compiler are you using? If with "VSCODE" you mean Visual Studio Code: That is pretty much a text editor with syntax highlighting, not a C++ compiler. Yes, with the help "extensions" Visual Studio Code can be used as rudimentary IDE for various programming languages. But still, for C++ development you're going to need a C++ compiler. Probably, for C++ development, you want a "full" version of Visual Studio (the one without "Code" in the name!).
Last edited on
I am by no means trying to discourage you from posting here, but you might have better luck with a forum dedicated to the platform you're using, which sounds like it's called "platformio".

Does the full error message point to where in the code there might be invalid syntax? Does it point to a line number or something? There apparently is a verbose option you can specify on the command-line:
Verbose mode can be enabled via -v, --verbose


A quick search gave results like https://community.platformio.org/t/marlin-compiling-error-using-vscode/19408/6
https://forum.v1engineering.com/t/help-with-firmware/17310/8
Maybe something in those threads might help you or at least you point you in the right direction.
Last edited on
Topic archived. No new replies allowed.