This one is pretty weird. I'm not sure how to write a ticket for this thing or even if other people are getting this bug.
Every time I start to write out a Processing sketch I type the following:
Code:
void setup(){}
void draw(){}
Then I put the insertion point before 'void setup(){}' and press return to start putting in global variables. And the console gives me the following error:
Code:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Bounds out of range: -1,1
at processing.app.syntax.JEditTextArea.select(JEditTextArea.java:1162)
at processing.app.EditorListener.keyPressed(EditorListener.java:370)
at processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1651)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I thought it might be pressing return with any old text there that gives this strange report, but no. What actually fires this bug is the following string
"{}"
WinXP version 123. To produce the bug, open the IDE, type "{}", then move the insertion point before this string and press return.
This bug is completely harmless by the way. But I thought Fry should know if he doesn't already.