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

Getting an ArgumentError missing keywords on Ruby 2.7.3 #87

Closed
FictMan opened this issue Aug 1, 2022 · 5 comments
Closed

Getting an ArgumentError missing keywords on Ruby 2.7.3 #87

FictMan opened this issue Aug 1, 2022 · 5 comments

Comments

@FictMan
Copy link

FictMan commented Aug 1, 2022

Describe the bug

After updating dry-container from 0.8.0 to 0.10.0, I'm getting an ArgumentError missing keywords in mixin.rb

dry-container-0.10.0/lib/dry/container/mixin.rb:221:in `key?': wrong number of arguments (given 2, expected 1) (ArgumentError)

My environment

  • Ruby version: 2.7.3
  • Rails version: 7.x
  • OS: Mojave 12.4
@flash-gordon
Copy link
Member

Please demonstrate a reproducible case, otherwise, I think this is an issue in your code. Keep in mind, 0.10 can have breaking changes compared to 0.8.

@FictMan
Copy link
Author

FictMan commented Aug 1, 2022

My bad, because when i'm trying use next code:

require 'dry/schema'

Dry::Schema.load_extensions(:hints)

.....

it cause for dry-container here is error

Failure/Error: require 'dry/schema'
ArgumentError:
  wrong number of arguments (given 2, expected 1)
# ./vendor/ruby/2.7.0/gems/dry-container-0.10.0/lib/dry/container/mixin.rb:221:in `key?'

Versions:

  • dry-schema (1.3.4)
  • dry-container (0.10.1)

@flash-gordon
Copy link
Member

Unfortunately, it's not enough to understand what went wrong. Can you provide a bull backtrace or a sample code that's failing? So that I can reproduce it on my side.

@farooqch11
Copy link

#92 is this relivent to this ?

@flash-gordon
Copy link
Member

Dunno but this one should be closed for lack of info 😅

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

No branches or pull requests

3 participants