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

IRB context - wrong number of arguments #141

Open
benj-p opened this issue Jul 22, 2024 · 1 comment
Open

IRB context - wrong number of arguments #141

benj-p opened this issue Jul 22, 2024 · 1 comment

Comments

@benj-p
Copy link

benj-p commented Jul 22, 2024

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
Copy link
Member

rosa commented Aug 19, 2024

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

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

2 participants