buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Ruscoe" <>
Subject Re: rake setup runs forever
Date Wed, 30 Jul 2008 18:44:59 GMT
Okay thank you much, that was what I needed to get started:

After messing with the gems some more I get passed an infinite loop trying
to load fastthreads.  Seems like a bug also but is out of scope.

Now when I try to build I am getting the following error (with --debug and

Exception `NoMethodError' at
/usr/lib/ruby/site_ruby/1.8/rubygems/version.rb:238 - undefined method
`collect' for #<Gem::Version::Requirement:0xb7df96a4>
rake aborted!
undefined method `collect' for #<Gem::Version::Requirement:0xb7df96a4>
/usr/lib/ruby/site_ruby/1.8/rubygems/version.rb:238:in `initialize'
/usr/lib/ruby/site_ruby/1.8/rubygems/version.rb:29:in `new'
/usr/lib/ruby/site_ruby/1.8/rubygems/version.rb:29:in `initialize'
/home/gruscoe/work/buildr/rakelib/setup.rake:40:in `new'
/home/gruscoe/work/buildr/rakelib/setup.rake:40:in `install_gem'
/home/gruscoe/work/buildr/rakelib/setup.rake:57:in `each'

I have tracked this down to line: 58(ish I may have added some puts before

The code block is:
desc "If you're building from sources, run this task one to setup the
necessary dependencies."
missing = { |dep| }
task 'setup' do
  missing.each do |dep|
    install_gem, dep.version_requirements
puts "Missing Gems #{missing.join(', ')}, please run rake setup first!"
unless missing.empty?

Now the dep.version_requirements is actually Version::Requirement (which
doesn't have the collect method).

The code that is failing because of this call is:

/usr/lib/ruby/site_ruby/1.8/rubygems/version.rb (around 238)
    def initialize(reqs)
      puts("reqs is: #{reqs.class}")
      @requirements = reqs.collect do |rq|
        op, version_string = parse(rq)
      @version = nil   # Avoid warnings.

As you can see I added the puts to see what classes are normally passed in.
They are always Array or String (although the doc mentions Array of
String).  So it appears that the setup needs to be passing in something
slightly differently then the dep.version_requirements.

I would guess most people already have their ruby deps done so they do not
have this problem.  I also do not have a fix for it.  I really only needed
to build so I could test the documentation I was sending so, hopefully this
will somehow get fixed before I need it again.

If there's anything else I can do please let me know.

On Tue, Jul 29, 2008 at 8:55 PM, Assaf Arkin <> wrote:

> On Tue, Jul 29, 2008 at 7:36 AM, Geoff Ruscoe <>
> wrote:
> > I am trying to run rake setup on what I just checked out of svn.
> >
> > I run rake setup and it runs forever using 100% cpu.
> >
> > $ rake setup install
> > (in /......./work/buildr)
> >
> > And there it sits for as long as I let it.
> >
> > I have buildr installed as a gem also (and for jruby, but I have removed
> > jruby from my path).
> >
> > Any ideas?
> Can you try:
>  ruby --debug -S rake setup
> That will spit out error messages on the console, to try and see how
> far it goes before it gets stuck.  If not, a few puts statements.
> Assaf

Geoff Ruscoe
Sigma Visions Computer Consulting

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message