diff --git a/app/Editor.java b/app/Editor.java index 3ae6e15f7..0813d191e 100644 --- a/app/Editor.java +++ b/app/Editor.java @@ -1680,6 +1680,10 @@ public class Editor extends JFrame if (mess.indexOf(rxString) == 0) { mess = mess.substring(rxString.length()); } + String javaLang = "java.lang."; + if (mess.indexOf(javaLang) == 0) { + mess = mess.substring(javaLang.length()); + } status.error(mess); } e.printStackTrace(); @@ -1698,7 +1702,10 @@ public class Editor extends JFrame String rxString = "RuntimeException: "; if (mess.indexOf(rxString) == 0) { mess = mess.substring(rxString.length()); - //System.out.println("MESS3: " + mess); + } + String javaLang = "java.lang."; + if (mess.indexOf(javaLang) == 0) { + mess = mess.substring(javaLang.length()); } status.error(mess); diff --git a/app/EditorConsole.java b/app/EditorConsole.java index 5cd5acceb..5c451295b 100644 --- a/app/EditorConsole.java +++ b/app/EditorConsole.java @@ -170,19 +170,8 @@ public class EditorConsole extends JScrollPane { } - public void message(String what, boolean err, boolean advance) { - //public void message(String what, boolean err, boolean advance) { - // under osx, suppress the spew about the serial port - // to avoid an error every time someone loads their app - // (the error is dealt with in Base with a message dialog) - /* - // no longer an issue. using a newer rev of rxtx - if (Base.platform == Base.MACOSX) { - if (what.equals("Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path")) return; - if (what.equals("Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver")) return; - } - */ - + // added sync for 0091.. not sure if it helps or hinders + synchronized public void message(String what, boolean err, boolean advance) { if (err) { systemErr.print(what); //systemErr.print("CE" + what); @@ -220,6 +209,10 @@ public class EditorConsole extends JScrollPane { * SwingUtilities.invokeLater() to ensure that the updates only * occur on the main event dispatching thread, and that appears * to have solved the problem. + *
+ * unfortunately this is probably extremely slow and helping cause + * some of the general print() and println() mess.. need to fix + * up so that it's using a proper queue instead. */ synchronized private void appendText(String txt, boolean e) { final String text = txt; @@ -244,6 +237,17 @@ public class EditorConsole extends JScrollPane { consoleDoc.remove(0, endOffset); } + // make sure this line doesn't go over 32k chars + lineCount = element.getElementCount(); // may have changed + Element currentElement = element.getElement(lineCount-1); + int currentStart = currentElement.getStartOffset(); + int currentEnd = currentElement.getEndOffset(); + //systemOut.println(currentEnd - currentStart); + if (currentEnd - currentStart > 10000) { // force a newline + consoleDoc.insertString(consoleDoc.getLength(), "\n", + err ? errStyle : stdStyle); + } + // add the text to the end of the console, consoleDoc.insertString(consoleDoc.getLength(), text, err ? errStyle : stdStyle); diff --git a/app/Runner.java b/app/Runner.java index 3ca490e57..134b78671 100644 --- a/app/Runner.java +++ b/app/Runner.java @@ -432,7 +432,7 @@ java.lang.NullPointerException int afterAt = s.indexOf("at") + 3; //if (afterAt == -1) { if (afterAt == 2) { // means indexOf was -1 - System.err.println(s); + //System.err.println(s); // stop double-printing exceptions return; } s = s.substring(afterAt + 1); @@ -487,10 +487,11 @@ java.lang.NullPointerException //} else if ( } } - // in case this was a tab that got embedded into the main .java - lineNumber -= sketch.code[codeIndex].preprocOffset; if (codeIndex != -1) { + // in case this was a tab that got embedded into the main .java + lineNumber -= sketch.code[codeIndex].preprocOffset; + // this may have a paren on the end, if so need to strip // down to just the digits /* diff --git a/todo.txt b/todo.txt index 0ce15ff36..6058b2a05 100644 --- a/todo.txt +++ b/todo.txt @@ -1,19 +1,31 @@ 0091 pde +X error messages from external not coming through very well +X especially on macosx.. is it writing to stdout.txt tho? +X figure out why it's killing things early? the process maybe? +X gl exceptions really not coming through +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1114520230;start=5 +X command keys don't work w/ shift +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1114661169;start=0 +X printing 32k chars to console w/o a line break will cause massive error +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115470426;start=0 + +fixed previously +o runtime exceptions have stopped coming through (on pc only?) +o test with florian example for the exception stuff +o that they don't show up in the error bar +o make sure this is no longer the case +o don't draw the nasty couple of pixels in the margin +o http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1115597365;start=0 + +_ have the shell script test for jikes first +_ have it run jikes quickly, if it exits with an error, warn user +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115302894 +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115787397;start=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -_ runtime exceptions have stopped coming through (on pc only?) -_ test with florian example for the exception stuff -_ that they don't show up in the error bar -_ make sure this is no longer the case - -_ error messages from external not coming through very well -_ especially on macosx.. is it writing to stdout.txt tho? -_ figure out why it's killing things early? the process maybe? -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1114520230;start=5 - _ make simple tool for casey to rebuild all the examples at once _ just make it easier to go to the next sketch _ need to rebuild with this release because of 1.3/1.4 issues @@ -108,7 +120,6 @@ X notes inside PdeCompiler _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_Software;action=display;num=1079867179;start=0 _ don't all mousepressed(), throw a compile error _ colorMode(RGB) -> caps being off -_ making it easier to draw shapes _ missing semicolons - better error message _ missing brackets, unmatched brackets _ "unexpected token void" -> "You're mixing dynamic and static mode" @@ -128,8 +139,6 @@ PDE / Console _ println() can hose the app for the first 20-30 frames _ need to figure out threading etc _ problem with it launching a new thread for every single update! -_ printing 32k chars to console w/o a line break will cause massive error -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115470426;start=0 PDE / Details @@ -137,9 +146,6 @@ PDE / Details _ lock the minimum size for the main processing editor frame _ if it's made too small, stuff from the bottom disappears -_ tab to just indent lines properly, -_ rather than having it convert to spaces - _ setting sketchbook to a folder on the network _ does this work? test on both on mac and pc.. _ or if not, should recommend people against it @@ -207,14 +213,15 @@ PDE / Editor _ when running with external editor, hide the editor text area _ drag & drop implementation to add files to sketch -_ tabs and spaces, command keys don't work w/ shift -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1114661169;start=0 +_ tab to just indent lines properly, +_ rather than having it convert to spaces +_ need a smarter handler (rather than the editor listener) +_ could look at previous line for its indent +_ and when hitting } do a proper outdent (if only spaces before it) _ switch to newer revision of jedit? _ is enormous horizontal scroller issue fixed properly _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1083787569 _ mouse wheel broken in the text editor? (windows jdk 1.5?) -_ don't draw the nasty couple of pixels in the margin -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1115597365;start=0 undo problems _ Ctrl-Z will undo, but not scroll to where the undo happens. @@ -264,7 +271,8 @@ PDE / Editor Status _ error messages run off the edge and go invisible _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1074894329 -_ multi-line errors a mess in jikes +_ multiple errors a mess in jikes +_ actual error may be 4th of 5 _ maybe a dropdown list thing, with the first just shown? _ move to modal dialog showError/Message/Warning/Prompt design _ nicely design dialog boxes to go with visual of p5 @@ -538,7 +546,6 @@ _ need exported application icons _ also out of cvs _ check for necessary tools to be installed _ zip, unzip, jikes, etc -_ need to change all the copyrights over to mit "except where noted" _ need more comprehensive list of 'known bugs' _ need more comprehensive list of 'known suggestions' _ javadoc "advanced" reference by beta @@ -620,8 +627,5 @@ _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_Software;acti PLATFORMS / Linux -_ have the shell script test for jikes first -_ have it run jikes quickly, if it exits with an error, warn user -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115302894 _ some reports of it not quitting properly, but not confirmed _ splash screen