Troubleshooting Exit Code 2 on VEXcode Pro V5

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

Make process closed with exit code 2 is generally a compilation/build error.


How to troubleshoot the make error 2:

  • Whenever you see the make process closed with exit code 2 error you can read the log in the output to see where the error is within your program. The Output can provide information on the following:
    • What row/column the error is in within the file
    • What the cause of the error is

Information from the Output:

  • What row/column the error is in within the file

VEXcode Pro V5 code editor and Output panel showing error message ‘expected ; after expression’ with location src/main.cpp:20:30 highlighted and corresponding line in code marked.

In the following example, the output is providing the information that there is an error on line (row) 20 column 30. This is shown as, “20:30.”

What the cause of the error is...

VEXcode Pro V5 Output panel highlighting missing semicolon after Brain.Screen.print(“Hello”) with an arrow indicating the missing semicolon and its location.

The output also provides information as to why the error is shown. A semicolon is missing after the expression, “Brain.Screen.print(“Hello”)”

Note: If you are running an older version of the VEXcode Pro V5 application, previous versions of VEXcode Pro V5 were allowing special characters in the filename or the project name.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: