basecamp / thruster

MIT License
672 stars 16 forks source link

Thruster not working in new projects due to "irb" gem #16

Closed brenogazzola closed 2 months ago

brenogazzola commented 2 months ago

Steps to reproduce

Open a terminal, type these commands:

rails new thruster-demo
cd thruster-demo
gem install thruster
thrust rails s

Expected behavior

Thruster and puma are initialized correctly

Actual behavior

Puma crashes with this error:

.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/reline-0.5.1/lib/reline/ansi.rb:246:in `winsize': Operation not supported by device - <STDIN> (Errno::ENODEV)

Cause

The problem is caused by the irb gem, which is a dependency of the debug gem, which in turn is part of the default Gemfile for new applications. Commenting out this gem lets thruster and puma to initialize correctly

System configuration

Rails version: Rails 7.1.3.2 Ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin23]