Skip to content

irb error on Mac M1 #7740

@klobuczek

Description

@klobuczek

On Mac M1 and jruby-9.4.2.0 irb causes an error and renders the terminal unusable for several members of our team.

M-GH4FQWVXGF:~ Heinrich_Klobuczek$ irb
▽NameError: undefined local variable or method `path' for #<IO:(closed)>
                                                                                         ttymode_yield at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/io/console/ffi/native_console.rb:35
                                                                            raw at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/io/console/ffi/native_console.rb:56
                                              cursor_pos at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/reline/ansi.rb:248
                                                                    may_req_ambiguous_char_width at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/reline.rb:478
                                     inner_readline at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/reline.rb:291
                                                                         readmultiline at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/reline.rb:254
                            readmultiline at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/forwardable.rb:238
                                                                    readmultiline at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/forwardable.rb:238
                                     gets at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb/input-method.rb:421
                                                                            eval_input at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:491
                         signal_status at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:722
                                                            eval_input at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:490
                                                                                                   lex at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb/ruby-lex.rb:273
                                       each_top_level_statement at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb/ruby-lex.rb:242
                                                                                                    loop at org/jruby/RubyKernel.java:1586
                                                                each_top_level_statement at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb/ruby-lex.rb:239
                                            catch at org/jruby/RubyKernel.java:1292
         each_top_level_statement at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb/ruby-lex.rb:238
                                                                eval_input at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:509
                                                                                                       run at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:443
                                                     catch at org/jruby/RubyKernel.java:1292
                                       run at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:442
                                                                     start at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/stdlib/irb.rb:375
                                                                                                    <main> at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/lib/ruby/gems/shared/gems/irb-1.4.2/exe/irb:11
                                                                          load at org/jruby/RubyKernel.java:1091
                                                        <main> at /Users/Heinrich_Klobuczek/.rvm/rubies/jruby-9.4.2.0/bin/irb:23
                                                                          eval at org/jruby/RubyKernel.java:1143
                                                        <main> at /Users/Heinrich_Klobuczek/.rvm/gems/jruby-9.4.2.0/bin/jruby_executable_hooks:22
                                                                 M-GH4FQWVXGF:~ Heinrich_Klobuczek$ 

Environment Information

Provide at least:

  • JRuby version (jruby -v) 9.4.2.0
  • Operating system and platform (e.g. uname -a): Darwin M-GH4FQWVXGF 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
  • Shell: bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions