From mboxrd@z Thu Jan 1 00:00:00 1970 From: cworth@cworth.org (Carl Worth) Date: Wed, 19 Aug 2009 14:37:15 -0700 Subject: [sup-talk] Exception trying to run git source In-Reply-To: <1250712045-sup-3506@masanjin.net> References: <1250642676-sup-2244@yoom> <1250698636-sup-6732@masanjin.net> <1250699596-sup-8133@ntdws12.chass.utoronto.ca> <1250704257-sup-3308@yoom> <1250707794-sup-6173@masanjin.net> <1250710221-sup-925@yoom.home.cworth.org> <1250712045-sup-3506@masanjin.net> Message-ID: <1250717434-sup-4489@yoom.home.cworth.org> Excerpts from William Morgan's message of Wed Aug 19 13:02:26 -0700 2009: > I find it surprising too. I haven't seen taht behavior before. FWIW, Sup > does try and detect if bin/sup and lib/sup have mismatched versions, and > that didn't fire... I wonder if it's just sent.rb that's been loaded. > Did you somehow delete sent.rb from your git directory, or something > like that? Nope. The git checkout is entirely intact, and it was quite a large number of modules getting misloaded. I ran an strace on the ruby process[*] and was able to plainly see that modules were being correctly loaded from ./lib until after /usr/lib/ruby/1.8/chronic.rb was loaded. After that, ruby would look for modules in /usr/lib/ruby/1.8 before ./lib. And sure enough, the first line of my chronic.rb has: $:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed I'll go ahead and find the right place to file that bug, but at least the mystery is solved now. -Carl [*] http://cworth.org/~cworth/tmp/ruby-sup.strace -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: