I got the error message: "expecting IDENT, found "[" in one of my processing scetches. I am using version 1.5.1 .
What is IDENT? What is Processing expecting from me?
This is the line where the error ocurred:
This is the whole error message:
processing.app.SketchException: expecting IDENT, found '['
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:326)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:613)
Do you have any idea what the problem is?
What is IDENT? What is Processing expecting from me?
This is the line where the error ocurred:
- for (gruppenWinkel[k] <= winkel*l)&&(winkel*l <= gruppenWinkel[k+1]) {
- String[] gruppen;
float[] gruppenWinkel;
PImage bg;
boolean dome = false; // hier Anzeigegröße verändern
float rInnenkreis;
float rAussenkreis;
float pDurchmesser;
void setup() {
size(960, 960);
if (dome == false) {
size(960, 960);
fill(255);
smooth();
bg = loadImage("hg_960_gruppen.jpg");
image(bg, 0, 0);
rInnenkreis = 242.5;
rAussenkreis = 425;
pDurchmesser = 10;
}
if (dome ==true) {
size(1920, 1920);
fill(255);
smooth();
bg =loadImage("hg_1920_gruppen.jpg");
image(bg, 0, 0);
rInnenkreis = 485;
rAussenkreis = 850;
pDurchmesser = 20;
}
gruppen = new String[9];
gruppen[0] = "leer";
gruppen[1] = "NI";
gruppen[2] = "EFD";
gruppen[3] = "ECR";
gruppen[4] = "PPE";
gruppen[5] = "ALDE";
gruppen[6] = "SD";
gruppen[7] = "Verts/ALE";
gruppen[8] = "GUE/NGL";
gruppenWinkel = new float[9];
gruppenWinkel[0] = 0;
gruppenWinkel[1] = 7.4;
gruppenWinkel[2] = 20.77;
gruppenWinkel[3] = 47.51;
gruppenWinkel[4] = 177.37;
gruppenWinkel[5] = 218.44;
gruppenWinkel[6] = 308.67;
gruppenWinkel[7] = 335.41;
gruppenWinkel[8] = 352.6;
String[] myText = loadStrings ("telekom.txt");
String[] [] votes;
votes = new String[myText.length] [4];
for (int i = 0; i < myText.length; i++) {
String[] wort = split(myText[i], ",");
for (int j = 0; j < wort.length; j++) {
votes[i] [j] = wort[j];
println(wort[j]);
}
}
float winkel = 360.0/float(myText.length);
for (int k = 0; k < 2; k++) {
for (int l = 0; l < myText.length; l++) {
for (gruppenWinkel[k] <= winkel*l)&&(winkel*l <= gruppenWinkel[k+1]) {
if (votes[l] [2].equals(gruppen[k] == true) {
pushMatrix();
translate (width/2, height/2);
rotate(radians(winkel*l));
noStroke();
if (vote[l] [1].equals("For") == true) { fill(0, 255, 0, 90); }
if (vote[l] [1].equals("Against") == true) { fill(255, 0, 0, 90); }
if (vote[l] [1].equals("Abstention") == true) { fill(255, 90); }
ellipse(hilfe.x, hilfe.y, pDurchmesser, pDurchmesser);
popMatrix();
}//Gruppenvergleich
}//für jeweiligen Ringabschnitt
}//l-Schleife
}//k-Schleife
} // void setup
This is the whole error message:
processing.app.SketchException: expecting IDENT, found '['
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:326)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:613)
Do you have any idea what the problem is?
1