-
Notifications
You must be signed in to change notification settings - Fork 187
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
Incompatible with Rails 7 #180
Comments
And I can not install it on a new Rails 7 app?! Bundler could not find compatible versions for gem "railties":
In snapshot (Gemfile.lock):
railties (= 7.0.0)
In Gemfile:
meta_request (~> 0.7.3) was resolved to 0.7.3, which depends on
railties (>= 3.0.0, < 7)
rails (~> 7.0.0) was resolved to 7.0.0, which depends on
railties (= 7.0.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict. |
If it helps, I was able to get past the stack overflow error like this: rails/rails#44157 (comment) But then my code crashes later on. |
I'm also hitting the same errors w/ Rails 7.0.1. Please advise. |
Also encountering same issues. |
same issues |
Same issue with ruby 3.1.2p20 and Rails 7.0.3 |
It works if you set the gem's version to the master branch |
@amrdruid thank you very much, as you said it works like this: |
@elalemanyo Even better, you can use the version that is published in RubyGems https://rubygems.org/gems/meta_request
|
@scott-knight If this fixes it for you feel free to close this issue |
Issue is back with rails 7.1.0 beta, even while using meta_request 0.7.4
|
The railties dependency was blocking compatibility with a new version, after allowing it should be fine. Fixes dejan#180
@DmitrySychev Did you ever find a solution? |
@elalemanyo, I haven’t, but I also haven’t actively looked into it. Had to stop using this gem and extension meanwhile. |
@DmitrySychev I also quit using the gem. @amrdruid I don't mind closing this bug if people feel that the fixes described above actually work. However, if there isn't an actual fix, code should be updated to fix this issue. |
On Rails 7.1.1 I got this error Gemfile ruby -v bundle
I really like this gem to find N+1 queries. Any alternatives? |
A bug fix for this issue has not been posted by the maintainers for nearly 2 years. I reached my frustration cap with this over a year ago and have since removed the gem from all of my projects. I'm closing this bug since there's a PR that appears to fix this issue. |
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 runrails db:create
and received the following error:I commented out all gems in the Gemfile and enabled them one by one, each time running
bundler
thenrails db:create
until I received the same error. Whenmeta_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.The text was updated successfully, but these errors were encountered: