You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 1088 moved from a Google Code project.
Added by 2012-10-30T05:59:34.000Z by n...@gammon.com.au.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
What steps will reproduce the problem?
Open the attached file with the IDE
Attempt an auto-format
What is the expected output? What do you see instead?
I expect the code to be formatted.
Instead:
First time, the IDE went into a loop and had to be forced-quit.
Second time:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at processing.app.tools.AutoFormat.indent_puts(AutoFormat.java:170)
at processing.app.tools.AutoFormat.run(AutoFormat.java:652)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
What version of the Arduino software are you using? On what operating system? Which Arduino board are you using?
IDE 1.0.1
Mac OS/X
Board not relevant
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
Latest nightly build of the IDE includes a new code formatter, based on astyle, that behaves as expected. Please not that the attached sketch will be badly formatter because of a missing / at line 5
*
This function shifts all the LED data out to the TLC5947's.
*/
should be
/*
This function shifts all the LED data out to the TLC5947's.
*/
This is Issue 1088 moved from a Google Code project.
Added by 2012-10-30T05:59:34.000Z by n...@gammon.com.au.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect the code to be formatted.
Instead:
First time, the IDE went into a loop and had to be forced-quit.
Second time:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at processing.app.tools.AutoFormat.indent_puts(AutoFormat.java:170)
at processing.app.tools.AutoFormat.run(AutoFormat.java:652)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?
IDE 1.0.1
Mac OS/X
Board not relevant
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: