We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Java mode works fine, however Javascript mode has no toolbar, running the sketch doesn't do anything, and resizing the console (forcing it to repaint) causes it to explode with some red errors. Computer slows to a crawl.
Halp?
the error is:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at processing.app.EditorToolbar.loadImages(EditorToolbar.java:152)
at de.bezier.mode.javascript.JavaScriptToolbar.init(Unknown Source)
at processing.app.EditorToolbar.paintComponent(EditorToolbar.java:177)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at java.awt.Window.paint(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1100(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Answers
Okay I fixed it (sort of) - the Javascript mode that shipped with the PDE was broken, I downloaded the other one (there were 2?) from the mode manager and it sort of works. Still farts out a lot of red error text to the console.
...and it isn't working anymore. It worked once. Here's the new error
Fixed it (again) - there were variables in size(). This is for a size-limited competition dammit :)
For a long time JS Mode stopped being bundled in Processing 2.
I advise you to make sure you got latest Processing 2.2.1 and delete all modes installed in "<sketchbook_folder>/modes/" w/ all Processing windows closed! Only then, reinstall your fav modes! (*)
Here's 1 CoffeeScript game from http://forum.processing.org/two/discussion/3580/flappy-code: B-)
That's impressive, I wish I could use Coffee mode but the contest rules say it has to work in standard Java mode too :( (KTByte fall 5k)