Need help with VS Code

My team and I are in the process of switching to VS Code to stay up to date. I have the Vex Extension, but I’m not very intrigued by the VS UI. I have a decent understanding of coding from text in Vex Code Pro, and we won’t do Vex V5 code because it has lag issues. I believe I am calling motors and the controller correctly in VS Code. I just have 2 basic motor groups (the API that Vex gives tells no definition of a motor group, only how to call a motor group, but I think it’s right) being told to drive via the joysticks. The issue is I get a “Make process closed with exit code: 2” issue when I try to build and download the code to Brain. I did a little trouble shooting, and I tried to download the basic Clawbot 4 motor competition template to the robot and get the same error. Does anyone know what the issue is? And could I get an example of a basic drivebase in VS Code like I’m using?

Can you send a full message of the error? It should be in the terminal tab on the bottom. Make process closed with exit code: 2 means there is an error in your code. If you open the terminal you can get a more detailed understanding of what the error is.

This is all it gives me.

Error -1073741515 can happen because of “missing essential components, wrongly configured system files, faulty hardware, or registry errors”. It might be a different context in the VEX Brain, but this still might have similar reasons.

Based on your error, your file vex/mkrules.mk has this issue on line 13. You might have edited it or it corrupted.

I can’t confirm this as I don’t have a Brain connection cable with me, but this might be the error.

You could just copy your code to a new VEX project, and it might fix.

1 Like

see this topic, install C++ runtime support.

2 Likes

I visited the other thread and don’t really understand how the issue could be fixed. I try to use no template, just the 1st file vex gives when creating a new file and get the same terminal error. I also tried uninstalling and reinstalling the vex extension.

Install the missing C++ runtime library.

2 Likes

Perfect! I dug a little further and downloaded both of the file and that fixed it. Thank You!