From 141fdc383d1ca4d0b8c0960e917227fbca5e2b77 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 24 Apr 2015 10:45:00 -0400 Subject: [PATCH] notes heading to release, improve error messages a teeny bit --- app/src/processing/app/Editor.java | 6 +++++ core/src/processing/core/PApplet.java | 2 +- core/todo.txt | 35 +++++++++++++++------------ todo.txt | 3 +++ 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 544a0a362..535d9dd4d 100755 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -2837,10 +2837,16 @@ public abstract class Editor extends JFrame implements RunnerListener { if (mess.indexOf(javaLang) == 0) { mess = mess.substring(javaLang.length()); } + // The phrase "RuntimeException" isn't useful for most users String rxString = "RuntimeException: "; if (mess.startsWith(rxString)) { mess = mess.substring(rxString.length()); } + // This is just confusing for most PDE users (save it for Eclipse users) + String illString = "IllegalArgumentException: "; + if (mess.startsWith(illString)) { + mess = mess.substring(illString.length()); + } statusError(mess); } // e.printStackTrace(); diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index dae6c949d..f0fc15dd8 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -5488,7 +5488,7 @@ public class PApplet implements PConstants { */ public PFont loadFont(String filename) { if (!filename.toLowerCase().endsWith(".vlw")) { - throw new IllegalArgumentException("loadFont() only works with .vlw font files"); + throw new IllegalArgumentException("loadFont() is for .vlw files, try createFont()"); } try { InputStream input = createInput(filename); diff --git a/core/todo.txt b/core/todo.txt index d0897a9c5..1cfc78112 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -18,13 +18,19 @@ o really nice for auto-complete o prevents hundreds of entries from coming up w/ auto-complete o downside: breaks compatibility big time X would have to use ALIGN_CENTER eta al, so no +X flicker on startup +X https://github.com/processing/processing/issues/3134 +X static mode - no setup() / draw() - broken in Java2D +X https://github.com/processing/processing/issues/3130 +X are we running on the EDT or not? +X switched to using the EDT, but no EDT for blit() b/c it flickers -_ flicker badness with offscreen buffer -_ https://github.com/processing/processing/issues/3134 -_ move checkRetina()/highResDisplay() to PApplet -_ and out of Toolkit and PSurfaceAWT -_ probably should also check to make sure PApplet running JVM 8 -_ or compile against 1.8 and force it? + +showstoppers +_ noSmooth() and other settings reset after setup() +_ https://github.com/processing/processing/issues/3113 +_ static mode - no setup() / draw() - broken in OpenGL +_ https://github.com/processing/processing/issues/3163 head X Sketch window dimensions off in Java2D @@ -47,6 +53,9 @@ X https://github.com/processing/processing/pull/3067 X fixes to SVG, implement percentages and some named colors X https://github.com/processing/processing/pull/3205 X https://github.com/processing/processing/issues/2992 +X add option to save JSON in compact form +X https://github.com/processing/processing/pull/3202 +_ needs documentation akarshit X lerpColor() outside of setup()/draw() kills sketch @@ -100,6 +109,10 @@ _ remove setTitle() etc methods from PSurface, just use the ones from Frame? _ and with that, encourage the use of the dummy frame object in renderers _ destroy() removed, but bring back? is that better than dispose()? _ Python Mode has a hook for when it's called +_ move checkRetina()/highResDisplay() to PApplet +_ and out of Toolkit and PSurfaceAWT +_ probably should also check to make sure PApplet running JVM 8 +_ or compile against 1.8 and force it? opengl misc _ sketchQuality() vs sketchSmooth()? @@ -115,16 +128,6 @@ _ or split them when sketchWidth/Height are implemented? _ check on performance of the new EDT setup -showstoppers -_ static sketch with size() produces black window -_ are we running on the EDT or not? -_ static mode - no setup() / draw() - broken in Java2D -_ https://github.com/processing/processing/issues/3130 -_ noSmooth() and other settings reset after setup() -_ https://github.com/processing/processing/issues/3113 -_ static mode - no setup() / draw() - broken in OpenGL -_ https://github.com/processing/processing/issues/3163 - _ sketch window is not placed at correct location on restart _ https://github.com/processing/processing/issues/3125 diff --git a/todo.txt b/todo.txt index 19ce4e464..38cc2af24 100644 --- a/todo.txt +++ b/todo.txt @@ -30,6 +30,9 @@ X the .macosx, .linux, etc prefs should be stripped X only use them on first load, and merge into preferences.txt X auto-insert after antlr @SuppressWarnings({ "unused", "unchecked", "cast" }) +_ is debug turned on? lots of "export.txt" complaints +_ sketchbook window is completely empty w/ no sketches +_ requires restart of p5 before it updates _ install/remove buttons not working in the managers _ https://github.com/processing/processing/issues/3172 _ search the source for 'applet' references (i.e. SVG docs)