We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › Strange IDE error
Page Index Toggle Pages: 1
Strange IDE error (Read 1478 times)
Strange IDE error
Jan 17th, 2007, 3:16pm
 
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.
Re: Strange IDE error
Reply #1 - Jan 17th, 2007, 7:00pm
 
please file it in the bugs db as "typing return before {} on the same line throws an Exception".
Re: Strange IDE error
Reply #2 - Jan 17th, 2007, 7:17pm
 
Done, bug 484.
Re: Strange IDE error
Reply #3 - Jan 18th, 2007, 1:56am
 
thanks a bunch.
Page Index Toggle Pages: 1