Go Down

Topic: Strange error just editing code in 0019 (Read 1 time) previous topic - next topic

juliandasilva

Hi, I was working on the following Skecth:

Quote


#include <DCMotor.h>


void setup()
{
motor0.setClockwise(true);
motor0.setClockwise(false);

motor0.setSpeed(50.0);
motor1.setSpeed(50.0);

delay(5000);

motor0.brake();
motor1.setSpeed(0);

motor0.setSpeed(-90.0);
motor1.setSpeed(-45.0);

delay(5000);

motor0.setSpeed(0);
motor1.setSpeed(0);
}

void loop()
{
}


And just open it and I get the following errors:

Error repainting line range {0,19}:
java.lang.ArrayIndexOutOfBoundsException: 55
at processing.app.syntax.SyntaxUtilities.paintSyntaxLine(Unknown Source)
at processing.app.syntax.TextAreaPainter.paintSyntaxLine(Unknown Source)
at processing.app.syntax.TextAreaPainter.paintLine(Unknown Source)
at processing.app.syntax.TextAreaPainter.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(JComponent.java:864)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintChildren(JComponent.java:864)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintChildren(JComponent.java:864)
at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
at javax.swing.JComponent.paint(JComponent.java:1038)
....
And continues.

This does not happend when I open the same pde in the 0018 IDE.

Regards,
Juli√°n
http://robotgroup.com.ar

juliandasilva

Well, I found the cause, but I still think it's a bug (the editor only showed text until the bad keyword, and then all that streaming with the long error text started).

The problem was that there was a bad formated keywords.txt file in another library. I fixed it, and the problem disapeared. In my 0018 it did not happen because that library was not installed.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy