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

Reline::Terminfo::TerminfoError error with Overmind #447

Closed
ogirginc opened this issue Jun 8, 2022 · 11 comments · Fixed by #673
Closed

Reline::Terminfo::TerminfoError error with Overmind #447

ogirginc opened this issue Jun 8, 2022 · 11 comments · Fixed by #673
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ogirginc
Copy link

ogirginc commented Jun 8, 2022

If a Procfile is used with Overmind, the error below is raised:

web    | [2581] ! Unable to load application: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web    | bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma)
worker | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: Reline::Terminfo::TerminfoError: The terminfo database could not be found.

@dzemlianoi-double found out, commenting out the code below solves the problem:

if Reline::Terminfo.enabled?
Reline::Terminfo.setupterm(0, 2)
end

As I am uncertain if the issue should be opened here or DarthSim/overmind#132, I have created a new one for this repo as well.

Here is the full logs.
web                | [2581] ! Unable to load application: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web                | bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma)
worker             | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web                | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/terminfo.rb:108:in `setupterm': The terminfo database could not be found. (Reline::Terminfo::TerminfoError)
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:21:in `<class:ANSI>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:6:in `<main>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
worker             | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/terminfo.rb:108:in `setupterm'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:21:in `<class:ANSI>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline/ansi.rb:6:in `<main>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline.rb:580:in `<main>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `each'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/reline-0.3.1/lib/reline.rb:580:in `<main>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `each'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `block in require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `block in require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `each'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `require'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler.rb:176:in `require'
web                | 	from /Users/ogirginc/teamtailor/config/application.rb:9:in `<top (required)>'
web                | 	from /Users/ogirginc/teamtailor/config/environment.rb:3:in `require_relative'
web                | 	from /Users/ogirginc/teamtailor/config/environment.rb:3:in `<top (required)>'
web                | 	from config.ru:4:in `require_relative'
web                | 	from config.ru:4:in `block in <main>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `eval'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `each'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler.rb:176:in `require'
worker             | /Users/ogirginc/teamtailor/config/application.rb:9:in `<top (required)>'
worker             | /Users/ogirginc/teamtailor/config/environment.rb:3:in `require_relative'
worker             | /Users/ogirginc/teamtailor/config/environment.rb:3:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `new_from_string'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in `load_file'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in `parse_file'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/configuration.rb:348:in `load_rackup'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/configuration.rb:270:in `app'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/runner.rb:150:in `load_and_bind'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/cluster.rb:357:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/launcher.rb:182:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/lib/puma/cli.rb:81:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/puma-5.6.4/bin/puma:10:in `<top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma:25:in `load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma:25:in `<top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:23:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:483:in `exec'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.4.1/lib/sidekiq/cli.rb:273:in `boot_application'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.4.1/lib/sidekiq/cli.rb:37:in `run'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.4.1/bin/sidekiq:31:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/sidekiq:25:in `load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/sidekiq:25:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:23:in `run'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:31:in `dispatch'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:25:in `start'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:48:in `block in <top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:36:in `<top (required)>'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
web                | 	from /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `<main>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:483:in `exec'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:31:in `dispatch'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:25:in `start'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:48:in `block in <top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/exe/bundle:36:in `<top (required)>'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
worker             | /Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `<main>'
worker             | Exited
web                | Exited
@ogirginc ogirginc changed the title Reline::Terminfo::TerminfoError error with Overmind Reline::Terminfo::TerminfoError error with Overmind Jun 8, 2022
@yshmarov
Copy link

OMG it really worked!
the file path for me was:
/Users/yaro/.rbenv/versions/3.1.2/lib/ruby/3.1.0/reline/ansi.rb

@michaelglass
Copy link

michaelglass commented Dec 2, 2022

I believe this is related to using tmux 3.3 (which overmind uses) on a mac (I got here because I updated to nixpkgs 22.11 which updated tmux).

some workarounds:

homebrew

$ brew uninstall --ignore-dependencies tmux
$ brew install tmux

(this works because the new brew formula is compiled with legacy terminfo)

nix

$ nix-env -iA nixpkgs.ncurses
$ infocmp -x tmux-256color >tmux-256color.src
$ sudo /usr/bin/tic -x tmux-256color.src

more context

atcruice added a commit to atcruice/dotfiles that referenced this issue Apr 18, 2023
@vweidhaas
Copy link

Thank you, this helped me a lot!

@slayer
Copy link

slayer commented Feb 27, 2024

same problem

macos 14.3
tmux 3.4
reline 0.4.3

reinstall tmux did't help

 ❯ rails c
/Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.4.3/lib/reline/terminfo.rb:94:in `setupterm': The terminfo database could not be found. (Reline::Terminfo::TerminfoError)
        from /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.4.3/lib/reline/ansi.rb:34:in `<class:ANSI>'
        from /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.4.3/lib/reline/ansi.rb:5:in `<top (required)>'
        from /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'

@cbeltrao
Copy link

If a Procfile is used with Overmind, the error below is raised:

web    | [2581] ! Unable to load application: Reline::Terminfo::TerminfoError: The terminfo database could not be found.
web    | bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/3.1.2/bin/puma)
worker | 2022-06-07T12:46:19.563Z pid=2700 tid=bj8 WARN: Reline::Terminfo::TerminfoError: The terminfo database could not be found.

@dzemlianoi-double found out, commenting out the code below solves the problem:

if Reline::Terminfo.enabled?
Reline::Terminfo.setupterm(0, 2)
end

As I am uncertain if the issue should be opened here or DarthSim/overmind#132, I have created a new one for this repo as well.

Here is the full logs.

This solved my issue, thanks!

@DEfusion
Copy link

I had same issue trying to run rails console. I re-installed my version of ruby via rbenv and that fixed it for me.

@nicho1991
Copy link

nicho1991 commented Mar 11, 2024

Had the same issue, my solution was a combination of things

  1. making sure tmux was uninstalled brew uninstall --ignore-dependencies tmux
  2. re-installing ruby
  3. making sure spring was disabled (was not working for my test)

@servatti
Copy link

spring stop worked for me.

@askegg
Copy link

askegg commented Mar 26, 2024

Just tripped across this issue. Here is what worked for me.
I had the following line in my ~/.tmux.conf file:

set -g default-terminal "tmux-256color"

Changing this to the following resolved this issue:

set -g default-terminal "xterm-256color"

It also results in the colours being off.

@tompng
Copy link
Member

tompng commented Apr 5, 2024

To reproduce:

% export TERM=random-string
zsh: can't find terminal definition for random-string
% irb
/path/to/reline/lib/reline/terminfo.rb:94:in `setupterm': The terminfo database could not be found. (Reline::Terminfo::TerminfoError)

Reline should not crash with any unknown TERM environment variable

ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 5, 2024
Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled == false` when fiddle or curses cannot be loaded.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

And does the same when Terminfo is present but TERM is not.

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 5, 2024
Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled == false` when fiddle or curses cannot be loaded.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

And does the same when Terminfo is present but TERM is not.

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 5, 2024
Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled == false` when fiddle or curses cannot be loaded.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

And does the same when Terminfo is present but TERM is not.

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 5, 2024
…alse`

Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 5, 2024
…alse`

Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 5, 2024
Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit to ima1zumi/reline that referenced this issue Apr 6, 2024
Fix ruby#447 ruby#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.
ima1zumi added a commit that referenced this issue Apr 6, 2024
Fix #447 #543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.
matzbot pushed a commit to ruby/ruby that referenced this issue Apr 6, 2024
be found
(ruby/reline#673)

Fix ruby/reline#447 ruby/reline#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.

ruby/reline@4ce247ce2b
@johnlinatoc
Copy link

Here's what worked for me:

  1. spring stop
  2. bundle clean --force

artur-intech pushed a commit to artur-intech/ruby that referenced this issue Apr 26, 2024
be found
(ruby/reline#673)

Fix ruby/reline#447 ruby/reline#543

This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.

Reline should not abort the process because of missing Terminfo.
Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
And does the same when Terminfo is present but TERM is not.
https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160

You can check the operation with `TERM=foo bundle exec bin/console`.

ruby/reline@4ce247ce2b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Development

Successfully merging a pull request may close this issue.