coatl / redparse

RedParse is a ruby parser written in pure ruby.
redparse.rubyforge.org
GNU Lesser General Public License v2.1
24 stars 2 forks source link

disallows subsequent loading of StringIO #9

Open rdp opened 13 years ago

rdp commented 13 years ago

I'm not quite sure how to reproduce this succinctly, but here it is:

$ ruby -vS irb
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
>> require 'rubygems'
=> true
>> require 'redparse'
=> true
>> require 'stringio'
NameError: StringIO is already defined
        from D:/installs/ruby-1.8.7-p334-i386-mingw32/ruby-1.8.7-p334-i386-mingw32/lib/ruby/1.8/i386-mingw32/stringio.so
        from D:/installs/ruby-1.8.7-p334-i386-mingw32/ruby-1.8.7-p334-i386-mingw32/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from (irb):3
        from :0

rdp commented 13 years ago

just ran into this again...work around is to require stringio before redparse [I even get it in jruby]