Log4r and Ruby 1.8.0 in Singleton problems

  • Thread starter David Heinemeier Hansson
  • Start date
D

David Heinemeier Hansson

Somethings rotten...

david% irb
irb(main):001:0> require 'Singleton'
irb(main):002:0> class Something
irb(main):003:1> include Singleton
irb(main):004:1> end
irb(main):005:0> require 'log4r'
/usr/local/lib/ruby/1.8/singleton.rb:119: warning: already initialized
constant FirstInstanceCall
NameError: undefined method `extend_object' for `Singleton'
from /usr/local/lib/ruby/1.8/singleton.rb:161:in `undef_method'
from /usr/local/lib/ruby/1.8/singleton.rb:161
from /usr/local/lib/ruby/site_ruby/1.8/log4r/repository.rb:4:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/log4r/repository.rb:4
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/
outputterfactory.rb:5:in `require'
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/outputterfactory.rb:5
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/outputter.rb:10:in
`require'
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/outputter.rb:10
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/iooutputter.rb:2:in
`require'
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/iooutputter.rb:2
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/fileoutputter.rb:4:in
`require'
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/fileoutputter.rb:4
from /usr/local/lib/ruby/site_ruby/1.8/log4r.rb:8:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/log4r.rb:8
from (irb):5:in `require'
from (irb):5
from
/usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/
outputter.rb:118irb(main):006:0>

It doens't do this unless I make another Singleton-class first. Any got
a clue?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top