mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix for imports problem (issue #1376)
This commit is contained in:
@@ -15,6 +15,8 @@ _ internally, PApplet might subclass it for the pointers
|
||||
_ but queueing needs to work
|
||||
_ coordinates from motionX/Y reportedly inconsistent
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1018
|
||||
_ pmouseX/Y not being set properly?
|
||||
_ http://code.google.com/p/processing/issues/detail?id=238
|
||||
|
||||
_ Android emulator doesn't always start on the first attempt
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1210
|
||||
|
||||
@@ -509,9 +509,11 @@ public class PdePreprocessor {
|
||||
program = substituteUnicode(program);
|
||||
}
|
||||
|
||||
// For 0215, adding } as a legitimate prefix to the import (along with
|
||||
// newline and semicolon) for cases where a tab ends with } and an import
|
||||
// statement starts the next tab.
|
||||
final String importRegexp =
|
||||
"((?:^|;)\\s*)(import\\s+)((?:static\\s+)?\\S+)(\\s*;)";
|
||||
//"(?:^|;)\\s*(import\\s+)((?:static\\s+)?\\S+)(\\s*;)";
|
||||
"((?:^|;|\\})\\s*)(import\\s+)((?:static\\s+)?\\S+)(\\s*;)";
|
||||
final Pattern importPattern = Pattern.compile(importRegexp);
|
||||
String scrubbed = scrubComments(program);
|
||||
Matcher m = null;
|
||||
@@ -534,18 +536,19 @@ public class PdePreprocessor {
|
||||
int start = m.start() + before.length();
|
||||
int stop = start + piece.length();
|
||||
// System.out.println(start + " " + stop + " " + piece);
|
||||
//System.out.println("found " + m.group(3));
|
||||
// System.out.println("removing '" + program.substring(start, stop) + "'");
|
||||
|
||||
// Remove the import from the main program
|
||||
program = program.substring(0, start) + program.substring(stop);
|
||||
scrubbed = scrubbed.substring(0, start) + scrubbed.substring(stop);
|
||||
// Set the offset to start, because everything between
|
||||
// start and stop has been deleted.
|
||||
offset = m.start();
|
||||
|
||||
// System.out.println("program now:");
|
||||
// System.out.println(program);
|
||||
offset = m.start();
|
||||
}
|
||||
} while (found);
|
||||
// System.out.println("program now:");
|
||||
// System.out.println(program);
|
||||
|
||||
if (codeFolderPackages != null) {
|
||||
for (String item : codeFolderPackages) {
|
||||
|
||||
+22
-6
@@ -1,22 +1,38 @@
|
||||
0215 core
|
||||
X change to getRows() method for iterating through the Table object
|
||||
X add parseInto() method (provisional)
|
||||
X change translate() and rotate() to use x, y, z as param names
|
||||
|
||||
cleaning
|
||||
o remove screenBlend(), textureBlend() from PGraphics et al
|
||||
o have andres take over all current GL issues in the tracker
|
||||
|
||||
events
|
||||
_ finish postEvent()
|
||||
_ need to make events interleave
|
||||
|
||||
_ change translate() and rotate() to use x, y, z as param names
|
||||
|
||||
_ add "CGAffineTransformInvert: singular matrix" problem to the Wiki
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1363
|
||||
|
||||
_ http://code.google.com/p/processing/issues/detail?id=79
|
||||
_ mouseButton not being set properly in mouseClicked
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1350
|
||||
_ mouseButton is 0 in mouseReleased() on OS X
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1373
|
||||
_ unconfirmed: keyEvent works only using JAVA2D
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1279
|
||||
_ mouseEntered/Exited?
|
||||
_ http://code.google.com/p/processing/issues/detail?id=500
|
||||
_ also look into Android issues with this stuff
|
||||
_ this only works for awt events... switch to using internal event code
|
||||
if (external && event.getNative() instanceof java.awt.event.KeyEvent &&
|
||||
((java.awt.event.KeyEvent) event.getNative()).getModifiers() ==
|
||||
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() &&
|
||||
event.getKeyCode() == 'W') {
|
||||
exit();
|
||||
}
|
||||
|
||||
_ add "CGAffineTransformInvert: singular matrix" problem to the Wiki
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1363
|
||||
|
||||
_ heading2D()? weird.. angle?
|
||||
_ http://code.google.com/p/processing/issues/detail?id=987
|
||||
|
||||
_ "translate, or this variation of it" when using text(s, x, y, z) accidentally
|
||||
_ change to be th text command
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
0215 pde
|
||||
X "expecting EOF, found 'import'" on previously working sketch
|
||||
X http://code.google.com/p/processing/issues/detail?id=1376
|
||||
|
||||
_ standard "Emacs" keybindings not implemented on OS X
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1354
|
||||
_ http://guides.macrumors.com/Keyboard_shortcuts§ion=10#Text_Shortcuts
|
||||
@@ -19,11 +22,10 @@ control-Y paste text previously deleted with control-K
|
||||
|
||||
http://download.eclipse.org/eclipse/downloads/
|
||||
|
||||
_ clientEvent() called even w/o data from server
|
||||
_ clientEvent() called even w/o data from server (with fix)
|
||||
_ http://code.google.com/p/processing/issues/detail?id=189
|
||||
_ check on adding ip() method
|
||||
|
||||
|
||||
_ Sketch that exported to Linux doesn't get the command line arguments
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1359
|
||||
|
||||
@@ -477,6 +479,8 @@ _ it's never useful. students can use { } if they want an empty block
|
||||
_ missing brackets, unmatched brackets
|
||||
_ examples added to the bug report
|
||||
_ http://code.google.com/p/processing/issues/detail?id=6
|
||||
_ enums not supported properly
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1352
|
||||
|
||||
low (features)
|
||||
_ copy running code from /tmp/buildXXxxx on crash of p5
|
||||
|
||||
Reference in New Issue
Block a user