God and Ruby 1.9

63 views
Skip to first unread message

elliottcable

unread,
Nov 14, 2009, 5:16:10 AM11/14/09
to god.rb
Arch recently made the switch to ruby19 in the official repostiories;
trying to set up a new system. Is God Ruby 1.9 compatible?
http://isitruby19.com/god implies that it’s not, due to
Thread.critical and possibly other problems (http://github.com/mojombo/
god/blob/9d5f4a9c4d24191141d640878ff266e32e36815d/lib/god/
driver.rb#L72). I’m really not sure.

Eric Lindvall

unread,
Nov 18, 2009, 2:25:24 AM11/18/09
to god.rb
I have a patch that has not been merged yet that removes the usage of
Thread.critical from DriverEventQueue:

http://github.com/eric/god/commit/11d3f5949972a83c0c48795372a9b159b827ea00

I'm not sure if there are other problems with running in 1.9, though.

On Nov 14, 2:16 am, elliottcable <google....@elliottcable.com> wrote:
> Arch recently made the switch to ruby19 in the official repostiories;
> trying to set up a new system. Is God Ruby 1.9 compatible?http://isitruby19.com/godimplies that it’s not, due to

tel

unread,
Nov 22, 2009, 2:46:21 PM11/22/09
to god.rb
Thanks for the 1.9 patch. This line seems to cause a problem:

@resource.wait(@mutex, delay) if delay > 0

The docs say that ConditionVariable only accepts one argument, so I am
not
quite sure how it is supposed to work.

Tor Erik

On Nov 18, 7:25 am, Eric Lindvall <e...@5stops.com> wrote:
> I have a patch that has not been merged yet that removes the usage of
> Thread.critical from DriverEventQueue:
>
> http://github.com/eric/god/commit/11d3f5949972a83c0c48795372a9b159b82...
>
> I'm not sure if there are other problems with running in 1.9, though.
>
> On Nov 14, 2:16 am, elliottcable <google....@elliottcable.com> wrote:
>
>
>
> > Arch recently made the switch to ruby19 in the official repostiories;
> > trying to set up a new system. Is God Ruby 1.9 compatible?http://isitruby19.com/godimpliesthat it’s not, due to

Eric Lindvall

unread,
Nov 25, 2009, 11:24:26 PM11/25/09
to god.rb
Yeah, sorry, I grabbed the wrong ConditionVariable. =)

The latest in http://github.com/eric/god/ or http://github.com/mojombo/god/
have the fix.

Let me know if it works any better.


On Nov 22, 11:46 am, tel <linne...@gmail.com> wrote:
> Thanks for the 1.9 patch. This line seems to cause a problem:
>
> @resource.wait(@mutex, delay) if delay > 0
>
> The docs say that ConditionVariable only accepts one argument, so I am
> not
> quite sure how it is supposed to work.
>
> Tor Erik
>
> On Nov 18, 7:25 am, Eric Lindvall <e...@5stops.com> wrote:
>
>
>
> > I have a patch that has not been merged yet that removes the usage of
> > Thread.critical from DriverEventQueue:
>
> >http://github.com/eric/god/commit/11d3f5949972a83c0c48795372a9b159b82...
>
> > I'm not sure if there are other problems with running in 1.9, though.
>
> > On Nov 14, 2:16 am, elliottcable <google....@elliottcable.com> wrote:
>
> > > Arch recently made the switch to ruby19 in the official repostiories;
> > > trying to set up a new system. Is God Ruby 1.9 compatible?http://isitruby19.com/godimpliesthatit’s not, due to

millr

unread,
Dec 14, 2009, 9:14:17 AM12/14/09
to god.rb
Still no joy on ruby19 here due to "timeout is not implemented yet" in
core.

On Nov 26, 4:24 am, Eric Lindvall <e...@5stops.com> wrote:
> Yeah, sorry, I grabbed the wrong ConditionVariable. =)
>
> The latest inhttp://github.com/eric/god/orhttp://github.com/mojombo/god/

Eric Lindvall

unread,
Dec 14, 2009, 2:50:24 PM12/14/09
to god.rb
Wow. That's a bummer. I hadn't noticed the Conditional Wait didn't
support timeout in 1.9. I'll have to investigate further to see if
there's an alternate solution.

Michal Frackowiak

unread,
Jan 5, 2010, 9:47:49 AM1/5/10
to god.rb
Is there any news on this issue? This really looks like a blocker...

Thanks,
Michal F

Message has been deleted

massi

unread,
Feb 15, 2010, 10:04:33 AM2/15/10
to god.rb
I installed god (condition-variable-1.9-support branch of Eric fork)
with ruby 1.9 and when I start god I'm getting the following error :

FATAL: Unhandled exception in driver loop - (ArgumentError): wrong
number of arguments (2 for 1)
/usr/local/lib/ruby19/gems/1.9.1/gems/god-0.8.0/lib/god/compat19.rb:
16:in `wait'
/usr/local/lib/ruby19/gems/1.9.1/gems/god-0.8.0/lib/god/driver.rb:
90:in `block in pop'
/usr/local/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'
/usr/local/lib/ruby19/gems/1.9.1/gems/god-0.8.0/lib/god/driver.rb:
87:in `pop'
/usr/local/lib/ruby19/gems/1.9.1/gems/god-0.8.0/lib/god/driver.rb:
151:in `block (2 levels) in initialize'
/usr/local/lib/ruby19/gems/1.9.1/gems/god-0.8.0/lib/god/driver.rb:
149:in `loop'
/usr/local/lib/ruby19/gems/1.9.1/gems/god-0.8.0/lib/god/driver.rb:
149:in `block in initialize'

Any idea where it comes from ?

Thanks,

M.

Tom Werner

unread,
Apr 4, 2010, 2:17:35 AM4/4/10
to god.rb
I've just released God 0.9.0 which contains Eric's Mutex and
ConditionVariable patches for Ruby 1.9 compatibility. It would be
great if you guys could install it and see if it solves your problems.

Tom

Reply all
Reply to author
Forward
0 new messages