Brain not picking up ports

I have this problem were I upload my code to the brain. The brain is not picking up the port numbers, therefore not running the code.

#include “vex.h”

// Allows for easier use of the VEX Library
using namespace vex;
int conspeedPCT = 100;
int velocityUnit = 70;
int main() {

while(true) {
LD.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct); //(Axis3+Axis4)/2
RD.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);//(Axis3-Axis4)/2

vex::task::sleep(20);
}
if (Controller1.ButtonR1.pressing())
{
Lift.spin(vex::directionType::fwd,conspeedPCT, vex::velocityUnits::pct);
}
else if (Controller1.ButtonR2.pressing())
{
Lift.spin(vex::directionType::rev,conspeedPCT, vex::velocityUnits::pct);
}
else
{
Lift.stop(vex::brakeType::brake);

Have you tested the ports using the diagnostics on the brain? The Device Info will show you that the ports are working. You can also click on the devices to see if they are working properly.

Also, the code you provided is incomplete. Are there more lines?

Please format your code

#include “vex.h”
// Allows for easier use of the VEX Library
using namespace vex;
int conspeedPCT = 100;
int velocityUnit = 70;
int main() {

while(true) {
LD.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct); //(Axis3+Axis4)/2
RD.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);//(Axis3-Axis4)/2

vex::task::sleep(20);
}
if (Controller1.ButtonR1.pressing())
{
Lift.spin(vex::directionType::fwd,conspeedPCT, vex::velocityUnits::pct);
}
else if (Controller1.ButtonR2.pressing())
{
Lift.spin(vex::directionType::rev,conspeedPCT, vex::velocityUnits::pct);
}
else
{
Lift.stop(vex::brakeType::brake);

The bracket at the end is missing so probably

No that’s not it. I compiled it and it was good. This was a problem that I’ve been having with the newer programs and had no problem with Vex coding Studio.

There was a close bracket that did not allowed all the other motors run.
while(true) {
LD.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct); //(Axis3+Axis4)/2
RD.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);//(Axis3-Axis4)/2

vex::task::sleep(20);
}

I got rid of the last bracket and it fixed my issue. I am now aware that the missing ports on my brain was a VEX issue.