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
SuggestExtensions cop not working on JRuby #9145
Comments
Indeed. The JRuby bit made me ignore the rest the ticket description. 😆 My bad! |
Well, for added fun, I can report that I'm having the same issue using rubocop outside of bundler on MRI. Using
edit: I updated my global ruby to
Same as before. |
I don't think it's a JRuby issue specifically, but rather that bundler isn't guaranteed to be available (it's only a development dependency). A couple checks for bundler and the presence of a Gemfile should resolve this (and #9148, which is a different error message but the same cause). |
…not available, or when there is no gemfile.
…ilable, or when there is no gemfile.
RuboCop 1.5.1 is out https://github.com/rubocop-hq/rubocop/releases/tag/v1.5.1 |
Thanks for so quickly resolving this! 1.5.1 works like a charm! |
I'm not sure whether I've not done something wrong but just updating RuboCop from 1.4.2 to 1.5.0 and running it blows up with:
Disabling the cop fixes the issue. This is on Linux, using JRuby. I haven't installed/am not using Bundler (which, I guess, is the problem).
The text was updated successfully, but these errors were encountered: