Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With puma 6.0.0, capybara 3.37.1 produces undefined method 'stdio' for Puma::Events:Class (NoMethodError) #2598

Closed
vtamara opened this issue Oct 18, 2022 · 5 comments

Comments

@vtamara
Copy link

vtamara commented Oct 18, 2022

Meta

Capybara Version: 3.37.1

Driver Information (and browser if relevant): cuprite (chromium driver 100.0.4896.75). puma 6.0.0

Expected Behavior

Passing system tests

Actual Behavior

#<Thread:0x00000f26bdd56978 /var/www/bundler/ruby/3.1/gems/capybara-3.37.1/lib/capybara/server.rb:76 run> terminated with exception (report_on_exception is true):                                                                              
/var/www/bundler/ruby/3.1/gems/capybara-3.37.1/lib/capybara/registrations/servers.rb:32:in `block in <top (required)>': undefined method `stdio' for Puma::Events:Class (NoMethodError)                                                                                                                                         
                                                                                                                                                                
  events = conf.options[:Silent] ? ::Puma::Events.strings : ::Puma::Events.stdio
                                                                          ^^^^^^                                                                                
        from /var/www/bundler/ruby/3.1/gems/capybara-3.37.1/lib/capybara/config.rb:64:in `block in server='
        from /var/www/bundler/ruby/3.1/gems/capybara-3.37.1/lib/capybara/server.rb:77:in `block in boot'

Steps to reproduce

On adJ 7.1 clone https://github.com/pasosdeJesus/sip configure and try to run system tests with

cd test/dummy; CONFIG_HOSTS=127.0.0.1 bin/rails test:system

I see that puma 6.0.0 does not implement Events.stdio as it did with 5.6.5. Now it is LogWriter.stdio

puma/puma@v5.6.5...v6.0.0#diff-3d469ea387dd7c1a10a5b143d8b02afb6d4d2a9a0b7a5532b88ab5d17014fdbcL168

@vtamara vtamara changed the title With puma 6.0.0 produces undefined method 'stdio' for Puma::Events:Class (NoMethodError) With puma 6.0.0 capybara produces undefined method 'stdio' for Puma::Events:Class (NoMethodError) Oct 18, 2022
@simi
Copy link
Contributor

simi commented Oct 18, 2022

It is good practice to search for similar issue before reporting problem.

#2530

Already fixed, waiting for release.

@vtamara vtamara changed the title With puma 6.0.0 capybara produces undefined method 'stdio' for Puma::Events:Class (NoMethodError) With puma 6.0.0, capybara 3.37.1 produces undefined method 'stdio' for Puma::Events:Class (NoMethodError) Oct 18, 2022
@vtamara vtamara closed this as completed Oct 18, 2022
@vtamara
Copy link
Author

vtamara commented Oct 18, 2022

Thank you.
Confirming that running with branch master it works.
@simi I wonder when there will be a new release.

@rgaufman
Copy link

rgaufman commented Nov 2, 2022

Any update on when the next release will be please?

@twalpole
Copy link
Member

twalpole commented Nov 4, 2022

3.38.0 has been released

@vtamara
Copy link
Author

vtamara commented Nov 11, 2022

Great, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants