Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require fails on linux #5

Open
suryagaddipati opened this issue Jan 30, 2012 · 1 comment
Open

require fails on linux #5

suryagaddipati opened this issue Jan 30, 2012 · 1 comment

Comments

@suryagaddipati
Copy link

ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

irb(main):001:0> require 'ripper2ruby'
NameError: uninitialized constant Ruby::List
from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ruby/string.rb:4:in <module:Ruby>' from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ruby/string.rb:3:in<top (required)>'
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire'
from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ruby/symbol.rb:2:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire'
from internal:lib/rubygems/custom_require:29:in require' from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ruby.rb:2:inblock in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ruby.rb:1:in each' from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ruby.rb:1:in<top (required)>'
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire'
from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ripper/ruby_builder.rb:2:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire'
from internal:lib/rubygems/custom_require:29:in require' from /usr/local/lib/ruby/gems/1.9.1/gems/ripper2ruby-0.0.2/lib/ripper2ruby.rb:1:in<top (required)>'
from internal:lib/rubygems/custom_require:33:in require' from <internal:lib/rubygems/custom_require>:33:inrescue in require'
from internal:lib/rubygems/custom_require:29:in `require'
from (irb):1

@qnet-herwin
Copy link

It only seems to work if you include some files in the correct order

require 'ruby/aggregate'
require 'ruby/list'
require 'ruby/block'
require 'ripper2ruby'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants