Bug 788 : importing a library results in "expecting EOF, found ..." error
Last modified: 2008-05-31 11:28




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
polymonkey
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-05-30 23:13
in version 0137 when you import a library and try to run the sketch I get
this error. Works fine in 0135 and 0136

processing.app.debug.RunnerException: expecting EOF, found 'void'

this was the code that produced the error

import processing.opengl.*;

void setup(){
size(400,400, OPENGL);
}

void draw(){
background(32);
translate(width/2, height/2);
rotate(radians(frameCount));
box(50);
}


and here is the complete error

processing.app.debug.RunnerException: expecting EOF, found 'void'
at processing.app.Sketch.build(Sketch.java:1528)
at processing.app.Sketch.handleCompile(Sketch.java:1326)
at processing.app.Editor.handleRun(Editor.java:1142)
at processing.app.Editor$15.actionPerformed(Editor.java:555)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
at
javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:1020)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:242)
at
javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2841)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
at
processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1637)
at java.awt.Component.processEvent(Component.java:5379)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
at java.awt.Component.dispatchEventImpl(Component.java:3941)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Additional Comment #1 From fry 2008-05-31 09:08
yeah, found and fixed this one yesterday; thanks for posting.
Additional Comment #2 From fjen 2008-05-31 11:28
*** Bug 789 has been marked as a duplicate of this bug. ***