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 › Error when trying to Auto Format
Page Index Toggle Pages: 1
Error when trying to Auto Format (Read 1141 times)
Error when trying to Auto Format
May 17th, 2005, 2:31pm
 
i'm guessing it has something to do with that the array containing the script while reformating it can't fit all of my script.. it's 616 lines so far Tongue

This is the delightful errormessage i'm getting:
Code:

java.lang.ArrayIndexOutOfBoundsException: 256

at processing.app.tools.AutoFormat.comment(AutoFormat.java:203)

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

at processing.app.Editor$16.actionPerformed(Editor.java:600)

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.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$ClickAction.actionPerformed(Unknown Source)

at javax.swing.SwingUtilities.notifyAction(Unknown Source)

at javax.swing.JComponent.processKeyBinding(Unknown Source)

at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)

at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)

at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)

at javax.swing.JMenuBar.processKeyBinding(Unknown Source)

at javax.swing.KeyboardManager.fireBinding(Unknown Source)

at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)

at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)

at javax.swing.JComponent.processKeyBindings(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1639)

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)


Is there a way for me to fix this, a config-file somewhere perhaps?

-seltar
Re: Error when trying to Auto Format
Reply #1 - Jun 2nd, 2005, 1:43pm
 
Hello Seltar,

the same problem occurs with my code...
same error message.

i dont have a solution, but a workaround... version 0085 is still on my machine, an i use it for auto formatting Wink

Re: Error when trying to Auto Format
Reply #2 - Jun 2nd, 2005, 2:02pm
 
I had a bit of a different approach.. i split it up into different tabs and autoformated each of them.. seemed to work fine Smiley

-seltar
Re: Error when trying to Auto Format
Reply #3 - Jun 7th, 2005, 2:51pm
 
yeah... tried this too, but it didnt work. waiting for 1000.
Re: Error when trying to Auto Format
Reply #4 - Jul 28th, 2005, 4:17am
 
hm, this code was contributed so i'm not completely familiar with it, but it seems as though it's dying because a comment perhaps never ended? or the file ended with a // comment?

could you post an example that causes the problem?
Re: Error when trying to Auto Format
Reply #5 - Jul 28th, 2005, 2:44pm
 
now filed in the bugs db:
http://dev.processing.org/bugs/show_bug.cgi?id=110
Page Index Toggle Pages: 1