Skip to content

Ripper is missing EXPR_VALUE #5801

@headius

Description

@headius

I'm working to get the fancy new IRB working and ran into this error:

[] ~/projects/irb $ jruby -Ilib -S irb
[/Users/headius/projects/jruby/lib/ruby/gems/shared/specifications/bundler-audit-1.0.0.gemspec] isn't a Gem::Specification (NilClass instead).
irb(main):001:1> def foo
irb(main):002:1>   puts NameError: uninitialized constant Ripper::EXPR_VALUE
Did you mean?  Ripper::EXPR_END
             const_missing at org/jruby/RubyModule.java:3811
          check_code_block at /Users/headius/projects/irb/lib/irb/ruby-lex.rb:281
               check_state at /Users/headius/projects/irb/lib/irb/ruby-lex.rb:104
                 set_input at /Users/headius/projects/irb/lib/irb/ruby-lex.rb:50
                each_index at org/jruby/RubyArray.java:1856
                 set_input at /Users/headius/projects/irb/lib/irb/ruby-lex.rb:48
                  rerender at /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/reline-0.0.1/lib/reline/line_editor.rb:431
            inner_readline at /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/reline-0.0.1/lib/reline.rb:304
                      each at org/jruby/RubyArray.java:1795
            inner_readline at /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/reline-0.0.1/lib/reline.rb:302

This appears to be another state constant added to Ripper. I was unable to find when it was added.

This new IRB will be default in Ruby 2.7.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions