#222 ✓resolved
Denis Barushev

Edge Rails and mislav-will_paginate gem don't work together

Reported by Denis Barushev | May 19th, 2008 @ 02:00 PM

I can't start server on rails edge empty project with _mislav-will_paginate-2.3.2_ and _require 'will_paginate'_ in the end of _config/environment.rb_:

denis@sempron:~/dev/test/require> ./script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/usr/lib64/ruby/site_ruby/1.8/rubygems.rb:139:in `activate': can't activate activesupport (>= 1.4.4), already activated activesupport-2.0.991] (Gem::Exception)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:155:in `activate'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:154:in `each'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:154:in `activate'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/denis/dev/test/require/vendor/rails/activesupport/lib/active_support/dependencies.rb:508:in `require'
        from /home/denis/dev/test/require/vendor/rails/activesupport/lib/active_support/dependencies.rb:353:in `new_constants_in'
        from /home/denis/dev/test/require/vendor/rails/activesupport/lib/active_support/dependencies.rb:508:in `require'
        from /home/denis/dev/test/require/config/environment.rb:69
         ... 26 levels...
        from /home/denis/dev/test/require/vendor/rails/railties/lib/commands/server.rb:39
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from ./script/server:3

Or after uninstalling activesupport:

denis@sempron:~/dev/test/require> ./script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/usr/lib64/ruby/site_ruby/1.8/rubygems.rb:523:in `report_activate_error': Could not find RubyGem activesupport (>= 1.4.4) (Gem::LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:131:in `activate'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:155:in `activate'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:154:in `each'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:154:in `activate'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/denis/dev/test/require/vendor/rails/activesupport/lib/active_support/dependencies.rb:508:in `require'
        from /home/denis/dev/test/require/vendor/rails/activesupport/lib/active_support/dependencies.rb:353:in `new_constants_in'
        from /home/denis/dev/test/require/vendor/rails/activesupport/lib/active_support/dependencies.rb:508:in `require'
         ... 27 levels...
        from /home/denis/dev/test/require/vendor/rails/railties/lib/commands/server.rb:39
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from ./script/server:3

What's wrong?

Comments and changes to this ticket

  • Denis Barushev

    Denis Barushev May 19th, 2008 @ 02:03 PM

    denis@sempron:~> gem list | grep will_paginate
    mislav-will_paginate (2.3.2)
    denis@sempron:~> gem -v
    1.1.1
    denis@sempron:~> ruby -v
    ruby 1.8.6 (2007-06-07 patchlevel 36) [x86_64-linux]
    denis@sempron:~> uname -a
    Linux sempron 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
    
  • Denis Barushev

    Denis Barushev May 20th, 2008 @ 08:24 AM

    • Assigned user changed from “Chris Wanstrath” to “Mislav”
  • Ryan Bates

    Ryan Bates May 23rd, 2008 @ 06:51 AM

    I'm getting the same error. Any update on this? Is there a temporary solution I could use in the meantime?

  • Mislav

    Mislav May 23rd, 2008 @ 05:54 PM

    • State changed from “new” to “open”

    Dudes, ur rubygems is broken!

    I can't imagine how this could happen. I'm using Rails 2.0.911 gems and can't reproduce it.

    Workarounds:

    • script/plugin install
    • git clone will_paginate, edit gemspec, gem build, gem install
  • Ryan Bates

    Ryan Bates May 23rd, 2008 @ 07:34 PM

    perhaps it has something to do with having edge rails installed in "vendor/rails" and not having the rails 2.0.991 gem installed? I'll do some more testing.

  • Denis Barushev

    Denis Barushev May 23rd, 2008 @ 07:38 PM

    Yep, Edge Rails in vendor/rails and mislav-will_paginate-2.3.2.gem from github.

  • Mislav

    Mislav May 23rd, 2008 @ 08:15 PM

    Thanks. That makes much more sense, and proves rubygems dependencies aren't

    broken.

    Use my workaround until I push a release that doesn't indicate that

    activesupport is a dependency.

    On Fri, May 23, 2008 at 7:38 PM, Lighthouse

    wrote:

  • Mislav

    Mislav June 11th, 2008 @ 02:16 PM

    • State changed from “open” to “resolved”

    Closing as resolved. The next will_paginate gem version 2.5 will not have any dependencies. Until then, if you're using vendored Rails, use vendored will_paginate, too:

    script/plugin install git://github.com/mislav/will_paginate.git
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Everyone's favorite Ruby library for pagination of practically anything!

Referenced by

Pages