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

Does not run on Ruby 2.7 #2068

Open
jcb-entrnce opened this issue Mar 8, 2022 · 1 comment
Open

Does not run on Ruby 2.7 #2068

jcb-entrnce opened this issue Mar 8, 2022 · 1 comment

Comments

@jcb-entrnce
Copy link

Helpy does not appear to support Ruby 2.7. On an install that ran fine on Ruby 2.5, I'm getting various errors such as:

App 15729 output: Error: The application encountered the following error: undefined method `new_ostruct_member' for #<Config::Options> (NoMethodError)
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config/options.rb:149:in `block in __convert'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config/options.rb:147:in `each'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config/options.rb:147:in `__convert'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config/options.rb:65:in `reload!'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config.rb:37:in `load_files'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config.rb:45:in `load_and_set_settings'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config/integrations/rails/railtie.rb:19:in `preload'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/railtie.rb:194:in `public_send'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/railtie.rb:194:in `method_missing'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/config-1.1.1/lib/config/integrations/rails/railtie.rb:11:in `block in <class:Railtie>'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
App 15729 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/application.rb:93:in `inherited'
App 15729 output:     /opt/xxxx/helpy/config/application.rb:11:in `<module:Helpy>'

and

App 14979 output: Error: The application encountered the following error: undefined method `new' for BigDecimal:Class (NoMethodError)
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/core_ext/object/duplicable.rb:111:in `<class:BigDecimal>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/core_ext/object/duplicable.rb:106:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/core_ext/object.rb:3:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-4.2.11.1/lib/active_support/core_ext/object.rb:3:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/configuration.rb:2:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/configuration.rb:2:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/railtie.rb:2:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/railtie.rb:2:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/engine.rb:1:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/engine.rb:1:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/application.rb:7:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/application.rb:7:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails.rb:11:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails.rb:11:in `<top (required)>'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/all.rb:1:in `require'
App 14979 output:     /usr/local/rvm/gems/ruby-2.7.5/gems/railties-4.2.11.1/lib/rails/all.rb:1:in `<top (required)>'
App 14979 output:     /opt/xxxx/helpy/config/application.rb:3:in `require'
@Pyo25
Copy link
Contributor

Pyo25 commented Sep 14, 2023

You should fix BigDecimal version < 2:

gem 'bigdecimal', '1.4.4'

I also had to fix versions of other gems in :development group:

gem 'pry', '0.12.2'
gem 'rubocop', '0.83.0'

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