rails_panel: Incompatible with Rails 7

Using Rails 7 and Ruby 3.0.3, created a new Rails 7 full stack app, added meta_request to the Gemfile and ran bundler. Everything install as expected. Then tried to run rails db:create and received the following error:

rails aborted!
SystemStackError: stack level too deep
/Users/scottknight/scott.projects/jobsauce-app/.gems/gems/activesupport-7.0.0/lib/active_support/core_ext/object/json.rb:180:in 'initialize_dup'
/Users/scottknight/scott.projects/jobsauce-app/.gems/gems/activesupport-7.0.0/lib/active_support/core_ext/object/json.rb:180:in 'dup'
/Users/scottknight/scott.projects/jobsauce-app/.gems/gems/activesupport-7.0.0/lib/active_support/core_ext/object/json.rb:180:in 'block in as_json'
/Users/scottknight/scott.projects/jobsauce-app/.gems/gems/activesupport-7.0.0/lib/active_support/core_ext/object/json.rb:179:in 'each'
/Users/scottknight/scott.projects/jobsauce-app/.gems/gems/activesupport-7.0.0/lib/active_support/core_ext/object/json.rb:179:in 'as_json'
/Users/scottknight/scott.projects/jobsauce-app/.gems/gems/activesupport-7.0.0/lib/active_support/core_ext/object/json.rb:63:in 'as_json'

I commented out all gems in the Gemfile and enabled them one by one, each time running bundler then rails db:create until I received the same error. When meta_request was enabled, the error appeared again. When disabled (or removed), the error goes away. I have no idea why the gem would cause this error, but it is not compatible with Rails 7.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 6
  • Comments: 17

Commits related to this issue

Most upvoted comments

@elalemanyo Even better, you can use the version that is published in RubyGems

https://rubygems.org/gems/meta_request

gem 'meta_request', '~> 0.7.4'

It works if you set the gem’s version to the master branch

Same issue with ruby 3.1.2p20 and Rails 7.0.3