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
Can't execute v1.34.0 with error "cannot load such file -- rubocop-rails" #10893
Comments
Can confirm this issue. It fails for any require that is placed in the |
+1 |
This error is caused by #10845. It requires backward compatibility. |
@hiro-teaaa Can you provide configuration around |
@koic Thank you for checking in so quickly.
Sure, here it is
Is it enough? |
@hiro-teaaa OK, It was reproducible. Thank you! |
…le exec` Fixes rubocop#10893. This PR fixes an error when running `rubocop` without `bundle exec`.
Fixes #10893. This PR fixes an error when running `rubocop` without `bundle exec`.
JFYI, RuboCop 1.34.1 has been released. Thank you. |
@koic Thanks for quick fix |
[Fix #10893] Fix loading behavior on running without `bundle exec`
It fails for me with
rubocop-1.45.1, bundler 2.4.7, rails master, ruby 3.2.1 |
Still getting such error with v1.60.2. But! I was able to fix this with
|
I can't run rubocop v1.34.0.
Downgrading to v1.33.0, I could run it correctly.
Expected behavior
In the rails project,
% rubocop
Actual behavior
Steps to reproduce the problem
%rubocop
RuboCop version
The text was updated successfully, but these errors were encountered: