‘vex:: competition’ code

At the beginning of all completion templates it has the ‘vex:: competition Competition;’ line and it’s giving me an error saying “previous definition is here”. I’ve tried playing with it to no avail, if I remove will my code work? Or is there a way to fix it?

Does it say where the previous definition is? A series of numbers? If you remove the competition configuration then the code will have more errors with the autonomous and opcontrol voids. You are probably configuring the competition twice. Or it could just be a linter error. Could you please post your code?

This was a bug in VCS, either remove vex:: competition Competition from the code or uncheck the checkbox for competition under project settings.

1 Like

Vex coding studio is now obsolute, you should use the newer one Vexcode, the syntax should still be the same.