This project is archived and is in readonly mode.

#4321 ✓invalid
makevoid

3.0.0b2 rails generator - no such file: singleton_class

Reported by makevoid | April 3rd, 2010 @ 07:25 PM

> rails --help

or

> rails whatever
  _GEMS_/gems/railties-3.0.0.beta2/lib/rails/generators.rb:6:in `require': no such file to load -- active_support/core_ext/object/singleton_class (LoadError)
from _GEMS_/gems/railties-3.0.0.beta2/lib/rails/generators.rb:6:in `<top (required)>'
from _GEMS_/gems/railties-3.0.0.beta2/lib/rails/commands/application.rb:10:in `require'
from _GEMS_/gems/railties-3.0.0.beta2/lib/rails/commands/application.rb:10:in `<top (required)>'
from _GEMS_/gems/railties-3.0.0.beta2/bin/rails:30:in `require'
from _GEMS_/gems/railties-3.0.0.beta2/bin/rails:30:in `<top (required)>'
from _GEMS_/bin/rails:19:in `load'
from _GEMS_/bin/rails:19:in `<main>'

I noticed by looking at activesupport 3.0.0b2 that singleton_class has been removed, so commenting the require (line 6) in http://github.com/rails/rails/blob/v3.0.0.beta2/railties/lib/rails/... will resolve the issue, but I haven't checked if somewhere something's using the removed class.

See you

Comments and changes to this ticket

  • makevoid

    makevoid April 3rd, 2010 @ 07:26 PM

    • no changes were found...
  • makevoid

    makevoid April 3rd, 2010 @ 07:27 PM

    • Tag changed from rails3 generator activesupport singleton singleton_class error to activesupport, error, generator, rails3, railties, singleton, singleton_class
  • The_Lord

    The_Lord April 7th, 2010 @ 11:39 PM

    Hmm this may sound silly, but running gem cleanup (uninstalling the previous version) solves the problem. I had the same issue and after the cleanup generators work fine.

  • José Valim

    José Valim April 10th, 2010 @ 12:43 PM

    • State changed from “new” to “invalid”

    Can't verify. As The_Lord said, something is probably wrong in your setup.

  • José Valim

    José Valim April 10th, 2010 @ 01:10 PM

    • Assigned user set to “José Valim”
  • Fabio Akita

    Fabio Akita April 18th, 2010 @ 06:41 PM

    Interesting, I had the same error and I can confirm that running "gem cleanup" fixes it, but it should be warned that this new release conflicts with something from previous versions installed in the system.

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages