Skip to content

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

@brenogazzola

Description

@brenogazzola

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions