Skip to content

Conversation

@albanpeignier
Copy link

When using ruby 2.7 Konfig.load fails with:

Failure/Error: Konfig.load

Konfig::KeyError:
  key not found: :new_ostruct_member
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:62:in `method_missing'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:98:in `block in __convert'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:96:in `each'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:96:in `__convert'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:16:in `load'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/yaml_provider.rb:37:in `load'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig.rb:12:in `load'

Avoid new_ostruct_member usage in Konfig::Option seems to be the solution as https://github.com/rubyconfig/config/pull/255/files did.

@khash
Copy link
Member

khash commented Jul 11, 2020

Thanks. What's the impact of this on Ruby < 2.7? (I don't have the full setup to test)

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

Successfully merging this pull request may close these issues.

2 participants