working on 48.. windows basic/advanced, macos tweaks

This commit is contained in:
benfry
2003-01-07 17:03:44 +00:00
parent 9b704ec488
commit ad5c38bc2e
10 changed files with 253 additions and 129 deletions

View File

@@ -1,2 +1,4 @@
# the usual 12 point from other platforms is too big on osx
editor.program.default.style = Monospaced,plain,10,#000000,#ffffff
editor.program.font = Monospaced,plain,10
# ... or another reasonable-looking option
#editor.program.font = Courier New,plain,11

2
build/macosx/run14.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
cd work && /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Commands/java -cp lib:lib/build:lib/pde.jar:lib/kjc.jar:lib/oro.jar:../comm.jar PdeBase

View File

@@ -10,6 +10,9 @@
# font size for editor
#editor.program.font=Monospaced,plain,12
# anti-aliased text, turned off by default
#editor.program.antialias=false
# foreground and background colors
#editor.program.fgcolor=#000000
#editor.program.bgcolor=#ffffff

View File

@@ -1,6 +1,6 @@
PROCE55ING DEVELOPMENT ENVIRONMENT
RELEASE 0047 - 5 JANUARY 2003
RELEASE 0048 - 6 JANUARY 2003
(c) 2001-03 Massachusetts Institute of Technology
and Interaction Design Institute Ivrea
@@ -78,7 +78,8 @@ of bugs. hopefully this is not a *long* ways off, but...
I FOUND A BUG!
we prefer to call them "issues."
a cultured software elite such as yourself should use the gentleman's
term "issue."
first, be sure to check under the notes for your specific platform to
make sure it isn't a known issue or that there isn't a simple fix.
@@ -106,6 +107,23 @@ for stranger errors during compile time, you can also look inside the
"build" folder inside "lib", which is an intermediate (translated into
java) version of your code.
the more details you can post, the better, because it helps us figure
out what's going on. useful things when reporting:
- we want the minimum amount of code that will still replicate the
bug. the worst that can happen is we get a report that says
"problem!" along with a three page program. sure, everyone likes a
puzzle, but simpler code will be a faster response.
- occasionally we may need you to pack up a copy of your sketchbook or
something similar so that we can try and replicate the weirdness on
our own machine. rest assured, we have no interest in messing with
your fancy creations or stealing your ideas. the p5 team is a pair
of straight-laced boys who hail from the midwestern u.s. who were
brought up better than that. and as we often lack enough time to
build our own projects, we have even less time to spend figuring out
other peoples' projects to rip them off.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@@ -218,8 +236,12 @@ you tell us about them, so we can fix them.
MAC OS X
the most current release has only been tested on Mac OS X 10.2.2. your
mileage may vary if you're running something else. actually, your
note that this release does *NOT* work under java 1.4. the most recent
version of 1.4 we tested is DP8, which was still too buggy and unstable
to run p5.
the most current release has only been tested on Mac OS X 10.2.3.
your mileage may vary if you're running something else. actually, your
mileage will vary no matter what, because who knows what this software
is gonna do. you're playing with free, alpha software. get psyched!
@@ -288,15 +310,27 @@ versions: this version has only been tested under Mac OS 9.2.2.
WINDOWS
win2k works well, reports point to xp working well also. win95/98/me
seems to have lots of trouble, but we think it's just with the .exe
that we use, so that'll get fixed in the future.
win2k works well, reports point to xp working well also.
the windows release is now using java 1.4, a forty megabyte beast of a
platform. this oughta double the size of the p5 download, but in the
future we hope to just make people install the runtime separately, so
if people already have it installed on their machine, no additional
work will be required.
win95/98/me seem to have some trouble, but we think it's just with
the .exe that we use, so that'll get fixed in the future. you can try
using the 'run.bat' file instead, and see if that works better.
the release is now split into 'basic' and 'advanced' versions. the
basic release includes a working java vm, and is all set up and ready
to go. the advanced version is for people who already have java
installed (and don't want to deal with the 20MB download), and know
what they're doing enough that they can also install the serial port
code by hand. instructions on installing the serial code are in the
'serial' folder inside the advanced release.
in the most recent release, we've removed the java 1.4 runtime, so
the download is far smaller, however you need to install java before
processing will work. visit http://java.sun.com/getjava to download.
out of memory? try adjusting the parameters in the file 'run.bat' and
use that to run instead of Proce55ing.exe. short instructions can be
found inside that file.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

View File

@@ -1,3 +1,31 @@
ABOUT REV 0048 - 7 january 2003
[ mac os ]
- this release includes a bit of tweaking to the fonts that are used by
default so that they look nicer on the mac. also, anti-aliasing is
turned *off* by default (thanks to franklin_mint for the tip), which
is a little more appropriate for coding. if you want to re-enable it,
check out pde.properties inside 'lib'.
- tried java 1.4 dp8 but it *does not work*, at least not very well,
with processing. assertion failures or outright crashes. blech.
hopefully apple will get this cleaned up and finished soon, because
it's already running fine under 1.4 on windows.
[ windows ]
- the release is now split in two, using 'basic' and 'advanced' versions.
the basic release includes a working java vm, and is all set up and
ready to go. the advanced version is for people who already have java
installed (and don't want to deal with the 20MB download), and know what
they're doing enough that they can also install the serial port code by
hand. instructions on installing the serial code are in the 'serial'
folder inside the advanced release.
- increased the default memory allocation to 64 MB.
ABOUT REV 0047 - 5 january 2003
[ happy new year ]

Binary file not shown.

View File

@@ -1,2 +1,6 @@
@echo off
.\java\bin\java -cp lib;lib\build;lib\pde.jar;lib\kjc.jar;lib\oro.jar;java\lib\ext\comm.jar PdeBase
REM --- if you need more ram, change the 64m (which means
REM --- 64 megabytes) to something higher.
java -ms64m -mx64m -cp lib;lib\build;lib\pde.jar;lib\kjc.jar;lib\oro.jar PdeBase

View File

@@ -11,7 +11,7 @@
//#define STACKSIZE_ARGS "-mx60m -ms60m "
//#define STACKSIZE_MATCH " -mx"
#define JAVA_ARGS ""
#define JAVA_ARGS "-Xms64m -Xmx64m "
#define JAVA_MAIN_CLASS "PdeBase"
//#define JAVA_CLASS_PATH "lib;lib\\build;lib\\pde.jar;lib\\kjc.jar;lib\\oro.jar;lib\\ext\\comm.jar"
@@ -102,6 +102,19 @@ BOOL CLauncherApp::InitInstance()
// put quotes around contents of cp,
// because %s might have spaces in it.
// test to see if running with a java runtime nearby or not
char *testpath = (char *)malloc(MAX_PATH * sizeof(char));
*testpath = 0;
strcpy(testpath, loaddir);
strcat(testpath, "\\java\\bin\\java.exe");
FILE *fp = fopen(testpath, "rb");
if (fp == NULL) {
AfxMessageBox("no java runtime");
} else {
AfxMessageBox("found java runtime");
}
sprintf(cp,
"-cp \""
"%s\\lib;"
@@ -109,9 +122,15 @@ BOOL CLauncherApp::InitInstance()
"%s\\lib\\pde.jar;"
"%s\\lib\\kjc.jar;"
"%s\\lib\\oro.jar;"
#ifdef LOCAL_JRE
"%s\\java\\lib\\ext\\comm.jar"
#endif
"\" ",
#ifdef LOCAL_JRE
loaddir, loaddir, loaddir, loaddir, loaddir, loaddir);
#else
loaddir, loaddir, loaddir, loaddir, loaddir);
#endif
//sprintf(cp, "-cp ");
//strcat(cp, JAVA_CLASSPATH);
@@ -133,10 +152,14 @@ BOOL CLauncherApp::InitInstance()
char *executable = (char *)malloc(256 * sizeof(char));
// loaddir is the name path to the current application
#ifdef LOCAL_JRE
strcpy(executable, loaddir);
// copy in the path for jrew, relative to launcher.exe
//strcat(executable, "\\bin\\jrew");
strcat(executable, "\\java\\bin\\javaw");
#else
strcpy(executable, "java");
#endif
//AfxMessageBox(executable);
@@ -164,7 +187,9 @@ BOOL CLauncherApp::InitInstance()
switch ((int)result) {
case ERROR_FILE_NOT_FOUND:
case ERROR_PATH_NOT_FOUND:
AfxMessageBox("A required file could not be found, please re-install.");
AfxMessageBox("A required file could not be found. \n"
"You may need to install a Java runtime\n"
"or re-install Proce55ing.");
break;
case 0:
case SE_ERR_OOM:

View File

@@ -1,3 +1,88 @@
0047
X reported by fdb and brendanberg
After creating about 27 sketches, proce55ing (0046 on OS X) no longer would startup, giving me the following error:
Exception in thread "main" java.lang.NullPointerException
at PdeBase.addSketches(PdeBase.java:598 )
at PdeBase.addSketches(PdeBase.java:615)
at PdeBase.rebuildSketchbookMenu(PdeBase.java:575)
at PdeBase.<init>(PdeBase.java:362)
at PdeBase.main(PdeBase.java:102)
Removing all sketches would solve the problem.
/ lots of problems in moving sketches over
i managed to run p5 from the applications folder once, but i think when i moved my sketches over from 0044 it broke: "uncaught exception in main method: java.lang.NullPointerException"
i tried reinstalling and running 'java -cp lib:lib/build: ...' and it worked fine (and would open from the icon afterwards)
again, after i moved my sketches over it broke permanently...
/ 46 dies when run from desktop on some machines [jes]
/ spaces in the dir name?
o is sketch.properties getting mangled on the mac?
X jedit text area
X change bg color for 'use external editor'
X enable/disable undo/redo
X don't let undo after setting text
X get focus after setText
X need to take care of auto-indent etc
X is setText goobering up on beautify?
X re-implement cut/copy/paste
X re-implement undo/redo
X get settings from PdeBase
X better defaults for syntax highlighting
X comments should be gray and not italicized
X disable end of line marker by default
X highlight p5 keywords
X setup, draw, loop as one class
X rect, line etc as another
X width, height, pixels as a third
X jump to top of document on load
X change style of ~ at end of document for unused area
X extra linefeeds is getting annoying for folks
X line endings joy
X how are line endings working during save?
X recursive sketch add that works properly and ignores crap
X crashes while starting
LaunchRunner Error] PdeBase.main(String[]) threw an exception:
java.lang.NullPointerException
at PdeBase.addSketches(PdeBase.java:598)
at PdeBase.addSketches(PdeBase.java:615)
at PdeBase.rebuildSketchbookMenu(PdeBase.java:476)
at PdeEditor.skNew2(PdeEditor.java:872)
at PdeEditor.checkModified2(PdeEditor.java:814)
at PdeEditor.checkModified(PdeEditor.java:797)
at PdeEditor.checkModified(PdeEditor.java:785)
at PdeEditor.skNew(PdeEditor.java:826)
at PdeEditor.init(PdeEditor.java:428)
at PdeBase.<init>(PdeBase.java:361)
at PdeBase.main(PdeBase.java:102)
at java.lang.reflect.Method.invoke(Native Method)
at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
at com.apple.buckyball.app.CarbonLibApp.main(CarbonLibApp.java:76)
X undo/redo can go to far
X docs
X make a note that size() has to come first [nluken]
X look at the code that's created in build/
X known issues
X random freezes.. especially under windows
X wheel mouse is gone again, to return later
X describe rundown of constants pulled from pde.properties
X coloring for syntax
X sketchbook.path, very preliminary, still creates 'default'
X macos9 stuff
X check to see if swing is working properly
X get new release out, remove 1.3 specific stuff from textpane
X get syntax coloring debugged?
X talk to casey about better default colors
X scroll to beginning after setText()
X color not set for default text area with empty text
X color not set on 'new', setForeground won't do it
X probably reasonably simple fix, but not in time
X undo/redo
X should enable/disable as available
X undo-ing too much will empty the text area
X the setText is an undoable thing. grr.
X method to set a folder for the sketchbook
X when trying to use serial, provide error if things not installed
0046
X install new swing-based textarea with syntax highlighting
X improve the flicker problems (re-enable backing store?)

167
todo.txt
View File

@@ -1,104 +1,33 @@
0047
X reported by fdb and brendanberg
After creating about 27 sketches, proce55ing (0046 on OS X) no longer would startup, giving me the following error:
Exception in thread "main" java.lang.NullPointerException
at PdeBase.addSketches(PdeBase.java:598 )
at PdeBase.addSketches(PdeBase.java:615)
at PdeBase.rebuildSketchbookMenu(PdeBase.java:575)
at PdeBase.<init>(PdeBase.java:362)
at PdeBase.main(PdeBase.java:102)
Removing all sketches would solve the problem.
/ lots of problems in moving sketches over
i managed to run p5 from the applications folder once, but i think when i moved my sketches over from 0044 it broke: "uncaught exception in main method: java.lang.NullPointerException"
i tried reinstalling and running 'java -cp lib:lib/build: ...' and it worked fine (and would open from the icon afterwards)
again, after i moved my sketches over it broke permanently...
/ 46 dies when run from desktop on some machines [jes]
/ spaces in the dir name?
o is sketch.properties getting mangled on the mac?
X jedit text area
X change bg color for 'use external editor'
X enable/disable undo/redo
X don't let undo after setting text
X get focus after setText
X need to take care of auto-indent etc
X is setText goobering up on beautify?
X re-implement cut/copy/paste
X re-implement undo/redo
X get settings from PdeBase
X better defaults for syntax highlighting
X comments should be gray and not italicized
X disable end of line marker by default
X highlight p5 keywords
X setup, draw, loop as one class
X rect, line etc as another
X width, height, pixels as a third
X jump to top of document on load
X change style of ~ at end of document for unused area
X extra linefeeds is getting annoying for folks
X line endings joy
X how are line endings working during save?
X recursive sketch add that works properly and ignores crap
X crashes while starting
LaunchRunner Error] PdeBase.main(String[]) threw an exception:
java.lang.NullPointerException
at PdeBase.addSketches(PdeBase.java:598)
at PdeBase.addSketches(PdeBase.java:615)
at PdeBase.rebuildSketchbookMenu(PdeBase.java:476)
at PdeEditor.skNew2(PdeEditor.java:872)
at PdeEditor.checkModified2(PdeEditor.java:814)
at PdeEditor.checkModified(PdeEditor.java:797)
at PdeEditor.checkModified(PdeEditor.java:785)
at PdeEditor.skNew(PdeEditor.java:826)
at PdeEditor.init(PdeEditor.java:428)
at PdeBase.<init>(PdeBase.java:361)
at PdeBase.main(PdeBase.java:102)
at java.lang.reflect.Method.invoke(Native Method)
at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
at com.apple.buckyball.app.CarbonLibApp.main(CarbonLibApp.java:76)
X undo/redo can go to far
X docs
X make a note that size() has to come first [nluken]
X look at the code that's created in build/
X known issues
X random freezes.. especially under windows
X wheel mouse is gone again, to return later
X describe rundown of constants pulled from pde.properties
X coloring for syntax
X sketchbook.path, very preliminary, still creates 'default'
X macos9 stuff
X check to see if swing is working properly
X get new release out, remove 1.3 specific stuff from textpane
X get syntax coloring debugged?
X talk to casey about better default colors
X scroll to beginning after setText()
X color not set for default text area with empty text
X color not set on 'new', setForeground won't do it
X probably reasonably simple fix, but not in time
X undo/redo
X should enable/disable as available
X undo-ing too much will empty the text area
X the setText is an undoable thing. grr.
X method to set a folder for the sketchbook
X when trying to use serial, provide error if things not installed
0048
pde
_ re-enable wheel mouse
System.getProperty("java.version") -> "1.4.1_01"
windows
_ remove built-in jre (!)
X modify run.bat, modify .exe file as well
X add -Xmx128m -Xms128m because people running out of memory (pitaru)
X tried with a 3k x 1k image and things broke
o maybe command line read properties from a file in lib
macosx
X include note in the readme that 1.4 is not supported
X is sketch.properties saving properly under macosx?
X text in editor is anti-aliased, allow to turn off (franklin_mint)
X also make text courier instead of monospaced
public void paint(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
super.paint(g2);
}
................................................................
docs/faq
_ notes on debugging
_ run with java -Xint blahblah (turns off jit)
_ doesn't yet run under java 1.4 on mac (?)
_ p5 faq items: re midi support, msgs w/ adam hoyle in mail folder
_ also 'why p5' message from amit pitaru on 12/15/02
_ and p5 versus flash stuff
_ lists the main arguments, could be a useful document
bagel / bugs
_ getting mouse movement outside the window
_ delay() should sleep the thread [glen murphy]
@@ -117,10 +46,11 @@ _ make into oval function
_ no longer require size() to come first?
_ beginQuads() beginLineStrip() ?
_ noCursor()
_ creating background image in setup, or setting background(BImage)
_ also using bagel as separate component, being able to grab its BImage
pde / bugs
_ re-enable wheel mouse
_ can't used random() inside constructor.. (Glen Murphy)
_ maybe related to problems loading images in constructors
_ images don't load during setup [reas]
@@ -155,27 +85,24 @@ _ not draw the sketch name bar doesn't appear"
pde / features
_ highlight a word and jump to it inside the reference
_ splitints, et al.. have another version to specify what to use
_ when the value gets a NumberFormatException.. ie.
_ splitInts("blah blah blah", ' ', 0);
_ and splitFloats("blah bl ah blaha ", ' ', Float.NaN);
_ shortcut to walk through history, ala photoshop (ctrl-alt-z)
_ ctrl-f for find, g for find next, h for next occurrence of selected
_ using external files
_ "look up in reference" function for selecting keywords
_ "look up in reference" function for selecting keywords
_ support 'classes' folder, through the use of a classloader
_ could also be done by launching external java app
_ all .jar files etc are added from this folder automatically
_ will need doubles for genomics work. ugh.
_ this is just enable/disable float stuff
_ may need to start putting properties somewhere besides lib
_ home directory (or preferences folder under macos9)
_ will need doubles for genomics work. ugh.
_ this is just enable/disable float stuff
windows
_ add -Xmx128m -Xms128m because people running out of memory (pitaru)
_ tried with a 3k x 1k image and things broke
_ maybe command line read properties from a file in lib
_ need splash screen, startup takes a long time
_ windows 95/98/ME seems to be broken
_ ME seems to be very broken
@@ -183,22 +110,25 @@ _ lockup/freezes (mKoser and zeitgeist)
_ jre icon not appearing in the systray
macosx
_ is sketch.properties saving properly under macosx?
_ reference doesn't launch on mac (mKoser)
_ Event.consume() doesn't work on entry fields
_ manifests itself in sketch naming, can't be constrained
_ may not be the case under swing?
_ escape key not quitting presentation mode
_ no events seem to be coming through at all
_ text in editor is anti-aliased, allow to turn off
_ also make text courier instead of monospaced
public void paint(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
super.paint(g2);
}
macosx / try with next java 1.4 dp release
_ tweak for java 1.4
_ need to add a line to the properties file
_ include a note about this in the readme, include url for download
_ connect.apple.com
running 1.4 from the command line:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Commands/java
Info.plist, setting JVMVersion
* 1.3.1 - only use JDK 1.3.1, even if later versions are available.
* 1.3* - use any version of JDK 1.3.x. Do not use JDK 1.4 even if it's dflt.
* 1.3+ - use the latest JDK version from JDK 1.3 onward, up to default JDK.
* 1.4+ - use JDK 1.4 or later, even if an earlier JDK is the default.
macos9
_ set file type for html files
@@ -211,6 +141,17 @@ _ make sure javacomm gets in there
_ test it a little more to make sure it works (cygwin x sucks)
docs/faq
_ make clear that setup is just for setup
_ but should also in the future allow to create static image
_ notes on debugging
_ run with java -Xint blahblah (turns off jit)
_ p5 faq items: re midi support, msgs w/ adam hoyle in mail folder
_ also 'why p5' message from amit pitaru on 12/15/02
_ and p5 versus flash stuff
_ lists the main arguments, could be a useful document
OTHER NOTES / API TO ADD
_ copyArea, copyImage
_ method of collapsing history for useful versions