I've been communicating with onmouse, the developer of processing-mode.
I've made an adjustment to my .emacs, to ensure that there is a trailing slash at the right place in a lisp expression that I created in order to follow the instructions in processing-mode.el's readme file.
I had ommitted the trailing slash. I have now corrected it thus:
(setq processing-location "/home/mantis/opt/processing-1.0.9/")
I now get the following error:
Code:
-*- mode: compilation; default-directory: "~/play/processing-1.0.9/" -*-
Compilation started at Tue Dec 29 14:56:34
/home/mantis/opt/processing-1.0.9/java/bin/java -classpath "/home/mantis/opt/processing-1.0.9/j\
ava/lib/rt.jar:/home/mantis/opt/processing-1.0.9/java/lib/tools.jar:/home/mantis/opt/processing\
-1.0.9/lib/antlr.jar:/home/mantis/opt/processing-1.0.9/lib/core.jar:/home/mantis/opt/processing\
-1.0.9/lib/ecj.jar:/home/mantis/opt/processing-1.0.9/lib/jna.jar:/home/mantis/opt/processing-1.\
0.9/lib/pde.jar" processing.app.Commander --sketch="/home/mantis/play/processing-1.0.9/" --outp\
ut="/home/mantis/play/processing-1.0.9/output" --run
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at processing.app.debug.Compiler.compile(Compiler.java:73)
at processing.app.Sketch.build(Sketch.java:1485)
at processing.app.Commander.<init>(Commander.java:203)
at processing.app.Commander.main(Commander.java:97)
Compilation exited abnormally with code 1 at Tue Dec 29 14:56:34
This is different. I might be getting somewhere.
However, if I search the *compilation* buffer for "test", I can't find it.
Could this mean that maybe my test sketch (titled test) is not being found?
This is the file I'm trying to run:
Code:
size(400, 400);
background(192, 64, 0);
stroke(255);
line(150, 25, 270, 350);
Just to see what would happen, I also tried to run another sketch, coded in the java style:
Code:
import processing.core.*;
public class MyProcessingSketch extends PApplet {
public void setup() {
size(200,200);
background(0);
}
public void draw() {
stroke(255);
if (mousePressed) {
line(mouseX,mouseY,pmouseX,pmouseY);
}
}
}
I got an indistinguishable error:
Code:
-*- mode: compilation; default-directory: "~/play/processing-1.0.9/" -*-
Compilation started at Tue Dec 29 15:06:55
/home/mantis/opt/processing-1.0.9/java/bin/java -classpath "/home/mantis/opt/processing-1.0.9/ja\
va/lib/rt.jar:/home/mantis/opt/processing-1.0.9/java/lib/tools.jar:/home/mantis/opt/processing-1\
.0.9/lib/antlr.jar:/home/mantis/opt/processing-1.0.9/lib/core.jar:/home/mantis/opt/processing-1.\
0.9/lib/ecj.jar:/home/mantis/opt/processing-1.0.9/lib/jna.jar:/home/mantis/opt/processing-1.0.9/\
lib/pde.jar" processing.app.Commander --sketch="/home/mantis/play/processing-1.0.9/" --output="/\
home/mantis/play/processing-1.0.9/output" --run
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at processing.app.debug.Compiler.compile(Compiler.java:73)
at processing.app.Sketch.build(Sketch.java:1485)
at processing.app.Commander.<init>(Commander.java:203)
at processing.app.Commander.main(Commander.java:97)
Compilation exited abnormally with code 1 at Tue Dec 29 15:06:56