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 'ripper' yields const already init warnings #2904

Closed
cpuguy83 opened this Issue May 1, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@cpuguy83
Copy link

cpuguy83 commented May 1, 2015

When trying to require ripper on jruby 9k-pre2 we get these warnings:

/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant SCANNER_EVENT_TABLE
/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant PARSER_EVENT_TABLE
/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant Version
/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant SCRIPT_LINES__

Looking at the referenced core.rb, the only thing I can see is that before doing anything it's requiring ripper.jar... so I'm assuming that these constants are being defined in there.

@enebo

This comment has been minimized.

Copy link
Member

enebo commented May 1, 2015

Hmmm, apparently I added the right mojo in the ripper.jar for it to load itself. @headius can you commit this ripper.rb change to MRI upstream?

@headius

This comment has been minimized.

Copy link
Member

headius commented May 5, 2015

Updated our stdlib in jruby/ruby@a0951c6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.