Open ogirginc opened 2 years ago
The same stuff started happening today.
If i run all the commands separately in different terminals (web, api, worker) - everything seems to work ok.
UPD: If i comment a couple of lines (№ 20-22) in /Users/MyUser/.rvm/rubies/ruby-3.1.1/lib/ruby/3.1.0/reline/ansi.rb
everything works ok. That's a hack but maybe could help someone temporary resolve the issue.
I can also confirm commenting out those lines does solve the problem. Created an issue on https://github.com/ruby/reline/issues/447 too.
For me, this turned out to be an issue with Homebrew's tmux version 3.3. Overmind uses tmux to run the Procfile
processes. As a test, I removed Overmind from the picture by running tmux
directly, and running the process (rails) inside it still crashed with the same terminfo error.
As a workaround, I added the line set -g default-terminal screen-256color
in my ~/.config/tmux/tmux.conf
. This was based on one of the suggested fixes here:
https://github.com/Homebrew/homebrew-core/issues/102748#issuecomment-1145378599
This was my preferred fix because it didn't involve changing Homebrew or system files. Others may choose something that works better for their environment, or wait to see if this is resolved in a post-3.3 tmux release in Homebrew.
I'm using macOS Catalina 10.15.7.
This started happening to me when I upgraded from tmux 3.2a to tmux 3.3a via Homebrew.
brew uninstall --ignore-dependencies tmux
then
brew install tmux
worked for me
Can confirm that @simonhutchings workaround worked for me too.
Ok, in case anyone finds this, for me none of the recommendations worked.
I've just upgraded to Mac OS Ventura on an M1 and at the same time upgraded a lot of homebrew packages.
So while I was having the same symptoms, I don't know what was at fault.
But, while I was having this issue with Reline, I also had a new issue in Tmux where my backspace stopped working. Tmux 3.3a.
While researching that issue I found this https://stackoverflow.com/questions/23848061/cannot-get-delete-key-to-work-with-tmux-and-osx
And the code in the answer actually both fixed my Reline issue with Overwind as well as my issue with the backspace.
brew install ncurses
$(brew --prefix)/opt/ncurses/bin/infocmp tmux-256color > ~/tmux-256color.info
tic -xe tmux-256color ~/tmux-256color.info
#https://github.com/tmux/tmux/issues/1257#issuecomment-581378716
#https://gist.github.com/bbqtd/a4ac060d6f6b9ea6fe3aabe735aa9d95
Hope it can help someone that, like me, decided to upgrade its system on a Friday off :D
I got here because I updated nixpkgs to 22.11 which pulls in a newer tmux. (reported the issue there btw)
The source of the problem is not overmind or reline but tmux changing its default term color and MacOs not supporting the tmux settings by default.
Many of the comments will help, but @nicalpi's comment is the one suggested by tmux author.
(newish ncurses from nix also works to solve the problem, you don't need to use it from brew).
same workaround for nix would be something like:
$ nix-env -iA nixpkgs.ncurses
$ infocmp -x tmux-256color >tmux-256color.src
$ sudo /usr/bin/tic -x tmux-256color.src
Glad I was able to find this thread
Till this day, @simonhutchings workaround worked for me too.
Has anyone encountered an error like this before?
I can run the commands from
Procfile
manually. However,overmind start
fails.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 `I am clueless at this stage and will take any help I can. 😅 Thank you!