You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On OpenBSD/adJ 7.4 on a tmux session the exception Errno::ENODEV is thrown in the following scenario:
In a rails project create a file q.sh to run the application in development mode but in the background i.e:
#!/bin/sh
bin/rails s &
Execute the script
% chmod +x ./q.sh
% ./q.sh
/var/www/bundler/ruby/3.3/gems/reline-0.5.3/lib/reline/ansi.rb:246:in `winsize': Operation not supported by device - <STDIN> (Errno::ENODEV) from /var/www/bundler/ruby/3.3/gems/reline-0.5.3/lib/reline/ansi.rb:246:in `get_screen_size' from /var/www/bundler/ruby/3.3/gems/reline-0.5.3/lib/reline/line_editor.rb:78:in `initialize' from /var/www/bundler/ruby/3.3/gems/reline-0.5.3/lib/reline.rb:542:in `new'
from /var/www/bundler/ruby/3.3/gems/reline-0.5.3/lib/reline.rb:542:in `block in core' from /var/www/bundler/ruby/3.3/gems/reline-0.5.3/lib/reline.rb:80:in `initialize'
Checking the source code of reline 0.5.3 in lib/reline/ansi.rb function get_screen_size I notice that you handle only the exception Errno::ENOTTY:
Description
On OpenBSD/adJ 7.4 on a tmux session the exception
Errno::ENODEV
is thrown in the following scenario:q.sh
to run the application in development mode but in the background i.e:Checking the source code of reline 0.5.3 in
lib/reline/ansi.rb
functionget_screen_size
I notice that you handle only the exceptionErrno::ENOTTY
:IMHO it is the same problem described by @revolter and @forthrin in #537.
It has worked for me to add support for the Errno::ENODEV exception i.e changing
for
Terminal Emulator
tmux on xterm on OpenBSD/adJ 7.4
The text was updated successfully, but these errors were encountered: