PhiLho
About 0141
Jun 12th , 2008, 5:26pm
This is a quick test of 0141, following request for improvement of error reporting... I hope this is the right place for this message, these are not really bugs to put in the bug base. I wondered about not seeing javac in the distribution, so I went to the code and saw you use com.sun.tools.javac.Main.compile Nice, I didn't know this existed... Note that header of Compiler.java still refers to Jikes... I loaded one of my sketches. Ran without problem. I added a right parenthesis to check error reporting. It is correctly handled, displaying "Syntax error, maybe a missing semicolon?" message, jumping to the faulty line, but it displays a stack dump, not so nice (useless info), although I don't know if it is on purpose or not. Note that original message is "expecting SEMI, found ')'", so your interpretation here isn't perfect, IMHO. If I remove the extra parenthesis and the semicolon, I get "expecting SEMI, found 'background'" so I suppose it is hard to distinguish the two cases. The diagnostic is correct for the missing right parenthesis... There is an old bug (at least from 0135) for badly formated color value: #ABCDE or #00ABCDEF displays a rather odd error message: "Preferences.getBoolean("preproc.web_colors") && w.getText().length() == 6" Not very informative, perhaps a little improvement is needed here (at processing.app.Sketch.build(Sketch.java:1526)). Old problem: when one defines functions without defining setup nor draw, we get odd error messages, depending on context. I don't know if this can be detected at pre-processing level. You might want to update the copyright dates in the About splash... HTH.