Problems with steam

7 views
Skip to first unread message

Chandler Kent

unread,
Mar 16, 2009, 10:50:30 PM3/16/09
to Cappuccino & Objective-J
So I finally decided to try out the latest versions of Cappuccino that
are on github. But I can't get the index.html of a newly created app
to load correctly. Here are the steps I have taken (running Ubuntu
8.10):

1. Download the tools from cappuccino.org/tools.
2. Run sh install-tools. It says tools are installed successfully.
3. Set the environment variables for PATH, OBJJ_HOME, and STEAM_BUILD
(echo says they are set correctly).
4. Get the source from github.
5. Run "ant bootstrap" with sudo permissions.
6. Create a project using "steam create test -l". I use -l to link it
with the git source. It is created successfully.
7. Go to test/ and run the default Hello World in Firefox. I get the
spinning indicator forever and Firebug reports the following error:

"missing ; before statement
file:///home/kentcc/test_app/Frameworks/Objective-J/Objective-J.js
Line 2175"

Strangely, this is only in index.html. index-debug.html loads
correctly.

Any ideas on why I might be getting this error?

Chandler Kent

unread,
Mar 16, 2009, 10:54:07 PM3/16/09
to Cappuccino & Objective-J
So I tried making a change to the AppController.j as described in
Thomas's 2nd cappuccino cast "building from the source" and now
Firebug gives me an error even in index-debug.html. The error is:

"a is not defined
file:///home/kentcc/test_app/Frameworks/Debug/Objective-J/Objective-J.js
Line 2175"

When I load index.html I get the same error as before.

This is strange.

Thoughts?

Chandler

peter renshaw

unread,
Mar 16, 2009, 11:28:26 PM3/16/09
to objec...@googlegroups.com
On Mon, 2009-03-16 at 19:54 -0700, Chandler Kent wrote:
> So I tried making a change to the AppController.j as described in
> Thomas's 2nd cappuccino cast "building from the source" and now
> Firebug gives me an error even in index-debug.html. The error is:
> "a is not defined
> file:///home/kentcc/test_app/Frameworks/Debug/Objective-J/Objective-J.js
> Line 2175"
>

I wrote about this yesterday on the list after finding the solution on
google objectivej group asked by "bakki" & answered by "Thomas
Balthazar". It's a trivial problem "modifying the security permissions"
& the solution is here:

http://wiki.github.com/280north/cappuccino/developing-locally-in-firefox-3

1.- Type about:config into the Location Bar (address bar) & press Enter.
2.- Click the “I’ll be carefull, I promise” button xD
3.- Change the security.fileuri.strict_origin_policy: (click False)

> When I load index.html I get the same error as before.
> This is strange. Thoughts?

Try searching http://groups.google.com/group/objectivej first because
the solution was there. I also pointed out this problem on the tutorial
you mention in the comments so it will be easier to find in the future:

http://www.flickr.com/photos/bootload/3359020612/


--
@bootload
http://twitter.com/bootload
http://flickr.com/photos/bootload
http://netspace.net.au/~goonmail

Chandler Kent

unread,
Mar 17, 2009, 7:40:53 AM3/17/09
to Cappuccino & Objective-J
My security permissions were correct. I forgot to mention that I had
already changed them so that security.fileuri.strict_origin_policy was
false. Just to be sure, I changed it to true and got the errors that
have been previously documented.

I have been developing with Cappuccino on this machine for some time
and it has worked until now when I tried to build my project against
the source.

Any other suggestions?

On Mar 16, 11:28 pm, peter renshaw <goonm...@netspace.net.au> wrote:
> On Mon, 2009-03-16 at 19:54 -0700, Chandler Kent wrote:
> > So I tried making a change to the AppController.j as described in
> > Thomas's 2nd cappuccino cast "building from the source" and now
> > Firebug gives me an error even in index-debug.html. The error is:
> > "a is not defined
> > file:///home/kentcc/test_app/Frameworks/Debug/Objective-J/Objective-J.js
> > Line 2175"
>
> I wrote about this yesterday on the list after finding the solution on
> google objectivej group asked by "bakki" & answered by "Thomas
> Balthazar". It's a trivial problem "modifying the security permissions"
> & the solution is here:
>
> http://wiki.github.com/280north/cappuccino/developing-locally-in-fire...
>
> 1.- Type about:config into the Location Bar (address bar) & press Enter.
> 2.- Click the “I’ll be carefull, I promise” button xD
> 3.- Change the security.fileuri.strict_origin_policy: (click False)
>
> > When I load index.html I get the same error as before.
> > This is strange. Thoughts?
>
> Try searchinghttp://groups.google.com/group/objectivejfirst because

peter renshaw

unread,
Mar 17, 2009, 8:26:57 AM3/17/09
to objec...@googlegroups.com
On Tue, 2009-03-17 at 04:40 -0700, Chandler Kent wrote:
> My security permissions were correct. I forgot to mention that I had
> already changed them so that security.fileuri.strict_origin_policy was
> false. Just to be sure, I changed it to true and got the errors that
> have been previously documented.
>

Ok.

> I have been developing with Cappuccino on this machine for some time
> and it has worked until now when I tried to build my project against
> the source.
>

Meaning the problem could be with the STEAM_BUILD path to the Frameworks
lib. The error you get indicates the Frameworks libs are not seen.

A) Could it be the paths? When setting the STEAM_BUILD path
in .bash_profile did you check to see if it was visible in the bash
shell?

$ echo $STEAM_BUILD
/foo/bar/

If you have created a new project using the tute using

$ steam create foo -l

then check the symbolic links to the Frameworks libs point to where you
set them?

B) Did you update the STEAM_BUILD path and forget to update it in the
shell?

$ source ~/.bash_profile

> Any other suggestions?

Another thing I can think of is the problem with "ant" accepting sudo on
installation?

C) Did you use sudo and pass the sudo command to ant when installing to
avoid the "ant" sudo bug?

$ sudo echo
password:

$ ant bootstrap


Can't think of any other causes but I do think it's a "path" to
Frameworks problem. Follow the video again, checking the "environment
variables" and "sudo" on installation.

Regs PR

Peter Renshaw

unread,
May 12, 2009, 12:28:25 AM5/12/09
to Cappuccino & Objective-J
Hi Chandler,
have you ever got to the bottom of this problem?

On Mar 17, 12:50 pm, Chandler Kent <ckents...@gmail.com> wrote:
> So I finally decided to try out the latest versions of Cappuccino that
> are on github. But I can't get the index.html of a newly created app
> to load correctly. Here are the steps I have taken (running Ubuntu
> 8.10):

I've installed Ubuntu 9.10 and after flawless installs on 8.04 now I'm
getting this exact problem.

> "missing;beforestatement
> file:///home/kentcc/test_app/Frameworks/Objective-J/Objective-J.js
> Line 2175"
>
> Strangely, this is only in index.html. index-debug.html loads
> correctly.
>
> Any ideas on why I might be getting this error?

I'm now able to reproduce this problem using the exact recipe you
outline.

Q. What is the difference b/w the debug and normal index.html files
that allow
the code to execute?

Ross Boucher

unread,
May 12, 2009, 1:01:26 AM5/12/09
to objec...@googlegroups.com
We haven't looked into this, only because steam was deprecated in 0.7,
which should be coming out really soon. The beta is available on
Github in the 0.7b branch, so you may want to give that a shot.

-Ross

peter renshaw

unread,
May 12, 2009, 1:12:44 AM5/12/09
to objec...@googlegroups.com
On Mon, 2009-05-11 at 22:01 -0700, Ross Boucher wrote:
> We haven't looked into this, only because steam was deprecated in 0.7,
> which should be coming out really soon. The beta is available on
> Github in the 0.7b branch, so you may want to give that a shot.
>
> -Ross
>

Good point but I was following the suggest path from 06 to 07b
( http://cappuccinocasts.com/2009/02/09/2-build-cappuccino-from-the-source/ & http://cappuccinocasts.com/2009/03/23/5-playing-with-cappuccino-07b/ ) :( Should theses be marked depreciated or noted as potentially troublesome?

I agree. I really want a clean 07 release, so I'll do what you suggest.
Thx for the reply.

Regs PR

Chandler Kent

unread,
May 12, 2009, 7:20:13 AM5/12/09
to Cappuccino & Objective-J
No I never actually figured out the problem. I have since used the
beta of 0.7 and it is working flawlessly.
Reply all
Reply to author
Forward
0 new messages