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
{{ message }}
Repository navigation
Some operations throwing the exception reline/ansi.rb:246:in `winsize': Operation not supported by device - <STDIN> (Errno::ENODEV) #690
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:
Activity
forthrin commentedon Apr 26, 2024
@vtamara: WFM
When will this make it into the official Rubygems distribution?
onemanteamsoftware commentedon May 2, 2024
winsize appears to be causing problems on windows 10 too, at least since the v0.5.0 release. Running bin/dev in a rails project results in:
Catches exceptions Errno::ENODEV and Errno::EBADF in get_screen_size. C…
[ruby/reline] Catches Errno::ENODEV and Errno::EBADF in
Catches Errno::ENODEV and Errno::EBADF in get_screen_size. Closes rub…