Hi Xavier, hi Bob, the bug is obscure and weird and I do not have any
test cases yet. I know for a fact it’s in Rails. See the mail about
“Constant already initialized” errors - basically, I saw it before
with code that only existed in my .irbrc and was not in any other
file anywhere on my system. But that was months ago. It went away on
its own and I don’t know why. I’ll post details on my blog at some
point today.
I’m not seeing it on my own installs either, but here’s a screencast
of the bug in action:
http://screencast.com/t/k6Nlk8Q0Csy
Here’s a grab of the stacktrace:
(I’ll put those on the blog also. Actually, the screencast is already
linked, but it’s in one of several posts. Orion E., who I quote
in the latest post, stopped his Rails apps from crashing on him
unexpectedly by removing the “edit” method in Utility Belt, see the
latest post and his comment on Raganwald’s blog for more.)
The relevant lib is ActiveSupport::Dependencies, it has a set of files
to load and for some reason it’s gathered .irbrc into that list,
either at or around line 488. That’s pretty much all I know at this
point. The bug’s only been conclusively spotted in versions prior to
2.0, but the relevant code in 2.0’s active_support/lib/dependencies.rb
is in most cases identical.
Re: blog comments, this is a friendly e-mail list where peer pressure
will compel us all to be decent human beings. It takes energy and luck
to get that in an online community - plenty of online communities
don’t have it - and the blog format doesn’t have the necessary
features to even encourage it, so I will never re-enable comments on
my blog. Blog comments are a bug. They often work out due to luck, but
the design is terrible and makes all kinds of unscalable assumptions.
But definitely get in touch with any and all ideas, I do appreciate
it. There 's also a Utility Belt list, it’s
[email protected].
(http://rubyforge.org/mailman/listinfo/utilitybelt-tinkering)
–
Giles B.
Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com