rails / mission_control-jobs

Dashboard and Active Job extensions to operate and troubleshoot background jobs
MIT License
611 stars 71 forks source link

IRB context - wrong number of arguments #141

Closed benj-p closed 3 weeks ago

benj-p commented 4 months ago

I'm running a Rails 7.1.3 app with Ruby 3.3.0. After installing mission_control-jobs (both 0.2.0 and 0.2.1) I'm facing an issue in the Rails console. Any command I try to execute leads to the following error:

irb(main):001:0> 1 + 1
/Users/XXX/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/irb-1.6.2/lib/irb/context.rb:481:in `evaluate': wrong number of arguments (given 3, expected 2) (ArgumentError)
        from /Users/XXX/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/mission_control-jobs-0.2.0/lib/mission_control/jobs/console/context.rb:6:in `block in evaluate'
        from /Users/XXX/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/mission_control-jobs-0.2.0/lib/mission_control/jobs/adapter.rb:3:in `activating'
        from /Users/XXX/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/mission_control-jobs-0.2.0/lib/mission_control/jobs/server.rb:18:in `activating'
        from /Users/XXX/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/mission_control-jobs-0.2.0/lib/mission_control/jobs/console/context.rb:6:in `evaluate'
        from <internal:kernel>:187:in `loop'

Everything else in the app seems to work as expected. I've tried reinstalling Ruby as well but that did not help. Removing mission_control-jobs does get rid of the error.

Any help would be appreciated.

rosa commented 3 months ago

@benj-p, could you try upgrading Mission Control Jobs now?

rosa commented 3 weeks ago

This should work fine in the last version, so I'm going to close this one, but feel free to re-open if you're still running into trouble.