Leopard, RVM, JRuby, Limelight 0.5.5

17 views
Skip to first unread message

Mel Riffe

unread,
Dec 13, 2011, 12:10:30 AM12/13/11
to limelig...@googlegroups.com
Howdy Folks,

Although I just updated Lighthouse Ticket #195, I was wondering if anyone else is having trouble running lighthouse 0.5.5. I was trying to follow along with the Docs; I made it up to 'lighthouse open hello_limelight'. I accessed the Docs from the Lighthouse installed by the installer.

I was very excited to learn about this project but my 'out of the box' experience has left much to be desired. What can I do to help?

Cheers,
Mel Riffe

Chuck Remes

unread,
Dec 13, 2011, 10:26:47 AM12/13/11
to limelig...@googlegroups.com
Ah, it's exciting to see another post on this list! :)

The limelight project has undergone some "bit rot" as JRuby has continued to be revised. Also, the github master shows quite a bit of activity but most of it is for non-Ruby (but obviously other JVM) languages.

I'd say the best way to help out is for the project, roll up your sleeves and create a few pull requests with fixes. Alternately, we need to get the word out about this project and attract some more eyeballs.

cr


Micah Martin

unread,
Dec 13, 2011, 5:07:50 PM12/13/11
to limelig...@googlegroups.com
Mel,

I'm a bit puzzled by this ticket. I looked into it before and I just tried it out now.

1. The error is odd: "'x' is not a valid style". I would expect this error to be consistent with all versions of JRuby. Yet, I can't reproduce it with all the versions I have. And there are no obvious causes.

2. All reports of the problem are using JRuby 1.6.0. This version of JRuby is not even available via RVM. That makes me think that there was a problem in JRruby 1.6.0 which caused them to pull it from distribution.

I'm going to guess that if you install a newer version of JRuby, you'll have better luck. Please let us know if that's the case.

Micah

Thomas E Enebo

unread,
Dec 13, 2011, 5:20:45 PM12/13/11
to limelig...@googlegroups.com
Actually some point during 1.6.x of JRuby we broke JI simplified
version of 'x' for 'getX' (only single char getters). I think it was
fixed for 1.6.4, but you should upgrade to 1.6.5 regardless.

-Tom

--
blog: http://blog.enebo.com       twitter: tom_enebo
mail: tom....@gmail.com

Mel Riffe

unread,
Dec 29, 2011, 10:19:14 PM12/29/11
to limelig...@googlegroups.com
Micah,

Thanks for the replay; my apologizes for taking so long to get back to you.

I moved on to Shoes between then and now. However, I'm going to give Limelight another go. I'm in the process of updating my RVM and installing JRuby 1.6.5.

However, a question: How does Limelight handle the requiring of gems?

I ask because I could not get Shoes to correctly work when trying to install a gem I had developed.

Thanks,
Mel

Mel Riffe

unread,
Dec 30, 2011, 9:53:48 PM12/30/11
to limelig...@googlegroups.com
First: I apologize if this is a double post; I replied but I haven't seen it posted to the group.

Micah,

Thanks for the information and sorry it's taken me this long to reply. Between now and then I started looking at Shoes but ran into a problem with it that make me reconsider Limelight.

After updating my RVM and installing JRuby 1.6.5 all is well.

Thanks,
Mel

Micah Martin

unread,
Dec 31, 2011, 8:14:15 AM12/31/11
to limelig...@googlegroups.com
Mel,

These days it's best to use Bundler and put a standalone install of the gems inside the production directory.

bundle install --standalone --path=gems

Then in production.rb:

require File.expand_path(File.dirname(__FILE__) + "/gems/bundler/setup")

I have an example here:

https://github.com/slagyr/cleantracker/
https://github.com/slagyr/cleantracker/blob/master/Rakefile
https://github.com/slagyr/cleantracker/blob/master/production.rb

Micah

Mel Riffe

unread,
Jan 1, 2012, 5:57:06 PM1/1/12
to limelig...@googlegroups.com
Thanks for the information, Micah. I'll take a look at cleantracker... Can I consider it a Ruby reference implementation? Do you know of any other apps being built?

Micah Martin

unread,
Jan 2, 2012, 12:11:08 PM1/2/12
to limelig...@googlegroups.com
Sure, I suppose it can be a reference implementation for version 0.5.5 of limelight.  It was presented at Rubyconf 2011 as an example of how to decouple your architecture. (http://www.youtube.com/watch?v=YkMnKWPIB_A)  There're several interesting tidbits in that code base.

I know of a few Limelight projects in the wild.  And here are 8th Light we're working on a Clojure Limelight project… fun!  Though I don't know of current open source Limelight projects.  There are a few others on my github page: hangman, battleship, solari, orbiter,...

Micah
Reply all
Reply to author
Forward
0 new messages