I've checked out Cappuccino 0.7b, and installed the plist gem.
Then I've run 'rake release' (here is the output http://gist.github.com/82429).
Then, I've added PATH="$STEAM_BUILD/Release/env/bin:$PATH" to my path.
Then, I've run :
$capp hello -l
which gives :
java -classpath
/Users/tba/objj_build/Release/env/lib:/Users/tba/objj_build/Release/env/lib/js.jar:/Users/tba/objj_build/Release/env/lib/objj:
main -I/Users/tba/objj_build/Release/env/lib/Frameworks
/Users/tba/objj_build/Release/env/lib/capp/main.j hello -l
Setting up Rhino utilties
/Users/tba/objj_build/Release/env/lib/capp/Resources/Templates/Application
-> /Users/tba/Desktop/capp-0.7b-examples/hello
/Users/tba/objj_build/Release/env/lib/capp/Resources/Templates/Application/AppController.j
-> /Users/tba/Desktop/capp-0.7b-examples/hello/AppController.j
/Users/tba/objj_build/Release/env/lib/capp/Resources/Templates/Application/index-debug.html
-> /Users/tba/Desktop/capp-0.7b-examples/hello/index-debug.html
/Users/tba/objj_build/Release/env/lib/capp/Resources/Templates/Application/index.html
-> /Users/tba/Desktop/capp-0.7b-examples/hello/index.html
/Users/tba/objj_build/Release/env/lib/capp/Resources/Templates/Application/Info.plist
-> /Users/tba/Desktop/capp-0.7b-examples/hello/Info.plist
/Users/tba/objj_build/Release/env/lib/capp/Resources/Templates/Application/main.j
-> /Users/tba/Desktop/capp-0.7b-examples/hello/main.j
And when I try to open the index.html file in Firefox 3 (develop
locally enabled) on Mac OS X 10.5.6, rake 0.8.3, gem 1.3.1, I get the
following JS alert :
"what the hell!?!!![Exception... "Component returned failure code:
0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXMLHttpRequest.send]"
nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame
:: file:///Users/tba/Desktop/capp-0.7b-examples/hello/Frameworks/Objective-J/Objective-J.js
:: anonymous :: line 2279" data: no]"
Obviously, I did something wrong.
Any idea?
Thomas Balthazar
http://suitmymind.com
http://cappuccinocasts.com
after
rake release
rake install
both commands are working for me :
capp myApp
capp myApp -t NibApplication
maybe the -l flag ?
Philippe
Also when I try to install using
$ rake clobber
$ rake install
I get the following 2 errors:
---------------------------
cp -r Resources/_CPMenuWindow /Development/Sources/Cappuccino/steam/
Debug/AppKit/Resources
org.mozilla.javascript.EcmaError: TypeError: Cannot read property
"length" from undefined
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3566)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3544)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:
3572)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:
3591)
at
org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:
3604)
at
org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:
1382)
at main._c142(Unknown Source)
at main.call(Unknown Source)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:
2346)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:
282)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:
129)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:
76)
at main._c140(Unknown Source)
at main.call(Unknown Source)
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:
119)
at main._c11(Unknown Source)
at main.call(Unknown Source)
at
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:
108)
at main._c0(Unknown Source)
at main.call(Unknown Source)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
3003)
at main.call(Unknown Source)
at main.exec(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime$1.run(OptRuntime.java:
252)
at org.mozilla.javascript.Context.call(Context.java:499)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
at org.mozilla.javascript.optimizer.OptRuntime.main(OptRuntime.java:
240)
at main.main(Unknown Source)
java -classpath /Development/Sources/Cappuccino/steam/Debug/env/lib:/
Development/Sources/Cappuccino/steam/Debug/env/lib/js.jar:/Development/
Sources/Cappuccino/steam/Debug/env/lib/objj: main -I/Development/
Sources/Cappuccino/steam/Debug/env/lib/Frameworks /Development/Sources/
Cappuccino/steam/Debug/env/lib/blend/main.j -d Themes/Aristo/
ThemeDescriptors.j -o /Development/Sources/Cappuccino/steam/Debug/
AppKit/Resources/Aristo.blend -R Themes/Aristo/Resources
Setting up Rhino utilties
OBJJ EXCEPTION: TypeError: Cannot read property "length" from undefined
Name: TypeError
Message: Cannot read property "length" from undefined
File:
Line: 0
Rhino Exception: org.mozilla.javascript.EcmaError: TypeError:
Cannot read property "length" from undefined
*** Message: TypeError: Cannot read property "length" from
undefined
*** Source name: null
*** Line number: 0
*** Column number: 0
*** Line Source: null
*** Filtered stack trace:
Unknown Source
Unknown Source
Unknown Source
Unknown Source
*** Script stack trace:
*** Raw stack trace:
(in /Development/Sources/Cappuccino/Tools)
(in /Development/Sources/Cappuccino/Tools/bake)
(in /Development/Sources/Cappuccino/Tools/capp)
cp -r Templates /Development/Sources/Cappuccino/steam/Debug/capp/
Resources
(in /Development/Sources/Cappuccino/Tools/nib2cib)
Compacting /Development/Sources/Cappuccino/steam/Debug/nib2cib
rake aborted!
can't convert nil into String
(See full trace by running task with --trace)
---------------------------
cp -r Resources/wheel_button_h.png /Development/Sources/Cappuccino/
steam/Release/AppKit/Resources
java -classpath /Development/Sources/Cappuccino/steam/Release/env/lib:/
Development/Sources/Cappuccino/steam/Release/env/lib/js.jar:/
Development/Sources/Cappuccino/steam/Release/env/lib/objj: main -I/
Development/Sources/Cappuccino/steam/Release/env/lib/Frameworks /
Development/Sources/Cappuccino/steam/Release/env/lib/blend/main.j -d
Themes/Aristo/ThemeDescriptors.j -o /Development/Sources/Cappuccino/
steam/Release/AppKit/Resources/Aristo.blend -R Themes/Aristo/Resources
Setting up Rhino utilties
OBJJ EXCEPTION: *** Could not locate file named "AppKit/CPTheme.j" in
search paths.
Name: OBJJFileNotFoundException
Message: undefined
File: undefined
Line: undefined
Alex Karahalios
git clone git://github.com/280north/cappuccino.git Cappucccino
git checkout origin/0.7b
git checkout -b origin/0.7b
I've also tried to do a
git clone Cappucccino Cappuccino-0.7b
and build in Cappuccino-0.7b, but get the following error:
java -classpath /Development/Sources/Cappucccino-0.7b/Build/Debug/env/
lib:/Development/Sources/Cappucccino-0.7b/Build/Debug/env/lib/js.jar:/
Development/Sources/Cappucccino-0.7b/Build/Debug/env/lib/objj: main -I/
Development/Sources/Cappucccino-0.7b/Build/Debug/env/lib/Frameworks /
Development/Sources/Cappucccino-0.7b/Build/Debug/env/lib/blend/main.j -
d Themes/Aristo/ThemeDescriptors.j -o /Development/Sources/
Cappucccino-0.7b/Build/Debug/AppKit/Resources/Aristo.blend -R Themes/
Aristo/Resources
Setting up Rhino utilties
OBJJ EXCEPTION: *** Could not locate file named "AppKit/CPTheme.j" in
search paths.
Name: OBJJFileNotFoundException
Message: undefined
File: undefined
Line: undefined
Blast!
It happened to me too last night. I did a rake clobber, rake debug and
it went away. Don't know what caused it though.
- ∞