running sproutcore from source (i.e. hacking on sproutcore)

24 views
Skip to first unread message

shawnmorel

unread,
Nov 10, 2010, 5:09:27 PM11/10/10
to SproutCore Developers
I'm a little lost at this point so I figure it's time for a post to
the mailing list. I've tried to find a straight forward guide to
running the head rev of sproutcore from the git repo. I've found a few
references but none of them work out of the box and some point to the
old sproutit repo.

Here's where I've gotten so far:

% git clone https://github.com/sproutcore/sproutcore.git
% cat > Gemfile
gem "sproutcore", :git => "git://github.com/sproutcore/abbot.git" ^D

% bundle install --binstubs

If I try to run sc-server at this point I get a failure about not
being able to find sproutcore:lib/index.rhtml

To get around this:
% ln -s PATH_TO_SC_CHECKOUT PATH_TO_ABBOT_GEM/lib/frameworks/
sproutcore
really hacky since the abbot gem will change each time someone commits
to the abbot repo

Now I can at least start to see stuff rendered (e.g. if I query
localhost:4020/docs). But everything is wonky

localhost:4020/ -> returns nothing at all (looks like something goes
wrong in the Rack cascade? SC::Rack::Service:113-148)

localhost:4020/greenhouse responds but the tmp staging directory is
messed up. Things aren't cleanly separated by project under static.

localhost:4020/sproutcore/greenhouse at least puts things under .../
static/sproutcore/* but I still get a slew of warnings that look like
the following:

WARN ~ Could not find entry 'panes/pane' required in sproutcore:source/
tmp/debug/staging/static/foundation/en/current/panes/main.js
WARN ~ Could not find entry 'panes/pane' required in sproutcore:source/
tmp/debug/staging/static/sproutcore/en/current/tmp/debug/staging/
static/foundation/en/current/panes/main.js
WARN ~ Could not find entry 'panes/pane' required in sproutcore:source/
tmp/debug/staging/static/sproutcore/en/current/tmp/debug/staging/
static/sproutcore/en/current/tmp/debug/staging/static/foundation/en/
current/panes/main.js
WARN ~ Could not find entry 'panes/pane' required in sproutcore:source/
tmp/debug/staging/static/sproutcore/en/current/tmp/debug/staging/
static/sproutcore/en/current/tmp/debug/staging/static/sproutcore/en/
current/tmp/debug/staging/static/foundation/en/current/panes/main.js

At this point I'm a little stumped. What's the best way to install
sproutcore and / or abbot so I can hack on it and run the latest
version

thanks,
shawn

btw, I got as far as above by trying to reconcile info from the
following:

The link you get when you try to git clone abbot and then invoke the
sc-* wrappers directly (regardless of whether you checkout sproutcore
in the frameworks subdir). Yes, it still points to sproutit rather
than sproutcore
https://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source

The obviously out of date instructions on running from latest when
greenhouse was announced
http://blog.sproutcore.com/post/535950751/introducing-greenhouse

After some digging, but still couldn't get the steps here working
http://wiki.sproutcore.com/w/page/12412840/Abbot-Setting%20Up

shawnmorel

unread,
Dec 3, 2010, 2:21:45 PM12/3/10
to SproutCore Developers
Ping!

Hey folks, sorry if I'm being a bother and can't find this info on my
own. If someone could point me to a way of running sproutcore from
source that would be great.

thanks,
shawn

On Nov 10, 2:09 pm, shawnmorel <shawnmo...@gmail.com> wrote:
> I'm a little lost at this point so I figure it's time for a post to
> the mailing list. I've tried to find a straight forward guide to
> running the head rev of sproutcore from the git repo. I've found a few
> references but none of them work out of the box and some point to the
> old sproutit repo.
>
> Here's where I've gotten so far:
>
> % git clonehttps://github.com/sproutcore/sproutcore.git
> than sproutcorehttps://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-Fro...
>
> The obviously out of date instructions on running from latest when
> greenhouse was announcedhttp://blog.sproutcore.com/post/535950751/introducing-greenhouse

Veebs

unread,
Dec 3, 2010, 9:41:42 PM12/3/10
to SproutCore Developers
Hi,

I basically put the sproutcore source into MyApp/frameworks/sproutcore
directory.

I've got some instructions here: http://www.veebsbraindump.com/sproutcore/

Hope it helps
Veebs

Emrys

unread,
Dec 8, 2010, 9:38:04 PM12/8/10
to sproutc...@googlegroups.com
I second this request.  I reported a memory leak today (issue #119) and I have a fix for it, but I can seem to get Abbot and my fork of sproutcore to play nice together to run the tests, etc.  I receive the same error regarding index.html that Shawn describes.

Any guidance is appreciated.  Or if there is proper documentation out there that I just haven't found, a quick link would be helpful.

Thanks,

Emrys

Peter Wagenet

unread,
Dec 9, 2010, 1:47:03 AM12/9/10
to sproutc...@googlegroups.com
What if you specify 1-4-stable as the abbot branch in your Gemfile?

-Peter

Emrys

unread,
Dec 13, 2010, 11:32:26 AM12/13/10
to SproutCore Developers
I managed to get things mostly working via the following setup (please
correct this if there is a better way...I hope there is as this is
rather convoluted):

Note, the base paths (like "/abbot") aren't literal, i.e. I'm not
advocating installing into the root of your filesystem =)

1. Clone the latest version of abbot into /abbot
2. Clone your fork of sproutcore into /abbot/lib/frameworks/sproutcore
(or symlink it there if you use an enlightened OS)
3. Change into the aforementioned sproutcore directory
3. Create a Gemfile which contains

source "http://rubygems.org"
gem "sproutcore", :path => "/abbot"

4. Run bundle install --binstubs
5. Run bin/sc-server

Committers, is this how you have your environment configured?

Emrys
Reply all
Reply to author
Forward
0 new messages