-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Gem upgrade results in error: uninitialized constant RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::AllowedReceivers #1138
Comments
Can you provide the result of If you have an older version of RuboCop, updating it with |
Great call @koic - we are on rubocop |
Related issue: #1143 |
@jessieay - I am not sure if we should close this issue - changing minimum required rubocop version in a patch level update is probably a bit unexpected, and the error is also rather ambiguous and not very helpful if you're trying to understand what happened. (also happy to continue in 1143) |
One way to mitigate this issue is to update https://github.com/rubocop/rubocop-rails/blob/master/rubocop-rails.gemspec#L38 to 1.52.0 -- releasing that change at 2.21.3 should make the error clearer for anyone upgrading. I don't know if yanking is a great idea. |
Thanks for weighing im, @Zarthus . I see you've opened #1144. I agree that it is a bit confusing for rubocop-rails to depend on modules included in newer versions of |
Limiting Using Rubocop |
Be clear, concise and precise in your description of the problem.
Open an issue with a descriptive title and a summary in grammatically correct,
complete sentences.
Use the template below when reporting bugs. Please, make sure that
you're running the latest stable RuboCop and that the problem you're reporting
hasn't been reported (and potentially fixed) already.
Before filing the ticket you should replace all text above the horizontal
rule with your own words.
Expected behavior
I can use
rubocop-rails
gem without any errorsActual behavior
I see an error.
Steps to reproduce the problem
Upgrading the latest gem version results in this error:
I believe this is the result of a recent PR: #1127
I saw this failure in my CI build here: https://gitlab.com/gitlab-org/ruby/gems/declarative-policy/-/merge_requests/56
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:You can see extension cop versions (e.g. rubocop-rails, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
The text was updated successfully, but these errors were encountered: