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 › I got a weird message with 98
Page Index Toggle Pages: 1
I got a weird message with 98 (Read 703 times)
I got a weird message with 98
Dec 16th, 2005, 9:12am
 
I used autoformat and I got this weird message when I used it, it worked, but it just gave me this weird message, but i couldn't recreate it afterwards, i'll keep trying to recreate it, but here's what the error says:

java.lang.IllegalArgumentException: Bounds out of range: 359,359

at processing.app.syntax.JEditTextArea.select(JEditTextArea.java:1162)

at processing.app.Editor.setText(Editor.java:992)

at processing.app.tools.AutoFormat.show(AutoFormat.java:921)

at processing.app.Editor$15.actionPerformed(Editor.java:637)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

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.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(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)

Re: I got a weird message with 98
Reply #1 - Dec 16th, 2005, 9:05pm
 
that looks like the caret was at the end of your sketch, then you did autoformat, and it shortened things down. it should be catching this case properly, but maybe something is just off by one somewheres.
Re: I got a weird message with 98
Reply #2 - Dec 16th, 2005, 11:42pm
 
ok, i was able to consistantly recreate it.

your right about the caret at the bottom, but it's not catching it.  i've only managed to recreate the problem when the last } is off place and then i move the cursor all the way down to the line after the last } and then do autoformat, it throws me the bounds out of range error, but still properly formats it.
Re: I got a weird message with 98
Reply #3 - Dec 18th, 2005, 3:01am
 
right. all fixed for 0099, thanks for the report.
Page Index Toggle Pages: 1