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
Rubocop binstubs issue causes failures on Windows #51618
Comments
I believe the correct fix is just to change Rails to run |
rails/railties/lib/rails/configuration.rb Line 138 in cf64895
|
Hi @zzak, I think this looks like it is completed but I'm not sure. [1] I created a new app on main and then ran the usual generate controller home welcome and I got this:
No error! That's great. [2] However, I think the earlier versions would run
Could it be that |
@mohits try making a change in I'm not sure if the behaviour has changed, but when testing on Mac I see RuboCop output only if there are corrections made, otherwise it's silent. |
Ah, it was change here: #51808 |
Thanks @andyw8 - I just switched off, but will try this later. This what I tried above was on a pristine main branch app and used to work fine (after the bundle fix) without changing rubocop.yml earlier. Rubocop used to run every time something new was generated. |
Also note that option is now off by default: #51782 |
Steps to reproduce
After setting up a new application with Rails main, create a controller in the empty application.
Expected behavior
The generate command should complete successfully without any errors from Rubocop.
Actual behavior
The command completes but ends with an error from Rubocop.
System configuration
Rails version: 7.2.0-alpha
Ruby version: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
Fix
The issue is fixed by installing binstubs for rubocop (unfortunately, right now, I do not know where the fix would be applied in the Rails codebase).
If you point me to where it should go, I am happy to open a PR. Else, I'm happy for someone to do this at the correct place. Thanks!
Other Information
Detailed links:
The text was updated successfully, but these errors were encountered: