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

Bug: undefined method `hide_cursor' for Reline::GeneralIO:Class (NoMethodError) #717

Open
williantenfen opened this issue May 14, 2024 · 0 comments

Comments

@williantenfen
Copy link

When running rails console get this error... but it works without spring running:

/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline/line_editor.rb:734:in `render_each_dialog': undefined method `hide_cursor' for Reline::GeneralIO:Class (NoMethodError)

    Reline::IOGate.hide_cursor
                  ^^^^^^^^^^^^
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline/line_editor.rb:651:in `block in render_dialog'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline/line_editor.rb:650:in `each'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline/line_editor.rb:650:in `render_dialog'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline/line_editor.rb:510:in `rerender'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:330:in `block (3 levels) in inner_readline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:328:in `each'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:328:in `block (2 levels) in inner_readline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:403:in `block in read_io'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:373:in `loop'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:373:in `read_io'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:326:in `block in inner_readline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:324:in `loop'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:324:in `inner_readline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/reline.rb:254:in `readmultiline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/forwardable.rb:238:in `readmultiline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/forwardable.rb:238:in `readmultiline'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/input-method.rb:417:in `gets'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:539:in `block (2 levels) in eval_input'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:770:in `signal_status'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:538:in `block in eval_input'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/ruby-lex.rb:284:in `lex'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/ruby-lex.rb:253:in `block (2 levels) in each_top_level_statement'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/ruby-lex.rb:250:in `loop'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/ruby-lex.rb:250:in `block in each_top_level_statement'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/ruby-lex.rb:249:in `catch'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb/ruby-lex.rb:249:in `each_top_level_statement'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:557:in `eval_input'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:491:in `block in run'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:490:in `catch'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:490:in `run'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/irb.rb:419:in `start'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.8.1/lib/rails/commands/console/console_command.rb:74:in `start'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.8.1/lib/rails/commands/console/console_command.rb:19:in `start'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.8.1/lib/rails/commands/console/console_command.rb:106:in `perform'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.8.1/lib/rails/command/base.rb:87:in `perform'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.8.1/lib/rails/command.rb:48:in `invoke'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.8.1/lib/rails/commands.rb:18:in `<main>'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
	from /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
	from /Users/willian/Development/bones/bin/rails:9:in `<main>'
	from <internal:/Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from -e:1:in `<main>'

Versions:


rails: 7.0.8.1
spring (4.1.1)
    spring-watcher-listen (2.1.0)
      listen (>= 2.7, < 4.0)
      spring (>= 4)

gem environment

gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 3.3.7
  - RUBY VERSION: 3.1.2 (2022-04-12 patchlevel 20) [arm64-darwin21]
  - INSTALLATION DIRECTORY: /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0
  - USER INSTALLATION DIRECTORY: /Users/willian/.gem/ruby/3.1.0
  - RUBY EXECUTABLE: /Users/willian/.asdf/installs/ruby/3.1.2/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /Users/willian/.asdf/installs/ruby/3.1.2/bin
  - SPEC CACHE DIRECTORY: /Users/willian/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/willian/.asdf/installs/ruby/3.1.2/etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - arm64-darwin-21
  - GEM PATHS:
     - /Users/willian/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0
     - /Users/willian/.gem/ruby/3.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/willian/.asdf/installs/ruby/3.1.2/bin
      /Users/willian/.asdf/shims
     - /opt/homebrew/opt/asdf/libexec/bin
     - /opt/homebrew/bin
     - /usr/local/bin
     - /System/Cryptexes/App/usr/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin

uname: uname -a Darwin MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64

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

1 participant