What to do if there is an error messege on the vex iq v2 brain in the middle of the match

The error messege shows up at a specific part of the routine. it is a red box saying which lines of code are wrong, but, the weird thing is that the lines dont exist! how do you fix this?

Question 1: What should I do if there is an error message on the vex iq v2 brain in the middle of the match?

The error messages are likely at the programmer’s fault, not the hardware, so referees should probably not take action upon it (e.g. restart the match).

Error messages will only appear for Python or C++, so you could also do an exception handler (try-except and try-catch, respectively) to ensure it doesn’t happen.

Question 2: How do I fix this error of lines of code that don’t exist?

We’ll have to look at your code and error, to see what’s wrong. The non-existent lines could be part of the compiling code in the trace error call-stack (not sure if this is the correct terminology).

1 Like

the error just mysteriosly dissappeared.