-
Notifications
You must be signed in to change notification settings - Fork 29
Failed to run RuboCop command - is it installed? #33
Comments
Same here with rvm v1.26.11 ruby v2.2.2p95, RuboCop plugin v3.1.0, RubyMine v8.0.3 and gem rubocop v0.34.2. idea.log: Rubocop runs from console without a problem. |
@sirlantis Is there any news regarding the issue you could share? Thanks! |
👍 |
same problem here, runs on console and sublime without errors, following settings: |
same problem here, runs on console and sublime without errors |
It might be a configuration issue with RubyMine. |
For now, you can manually downgrade to version |
Unfortunately 3.0.1 doesn't work for me either.
rubocop runs fine in Terminal. |
@sleeptillseven I also had the problem with version 3.0.2 (see #31), I wonder if 3.0.1 will solve the issue. Oh, and as you've been asking about my configuration, that's also mentioned in #31. |
I forgot to mention that i'm using mac os x yosemite 10.10.5 with the default bash terminal. i placed an symlink (which is also working) there - but plugin still doesn't work. maybe this helps? |
I'm using OSX 10.11.2, default bash.
RubyMine is searching in the wrong directory, in the directory of my app.
|
I don't know whether this helps but I also installed rubocop global (for that version) as well as through the gemfile (running on a mac with rvm). But as said, a downgrade worked for me. But why I can't explain - software 😨 |
Same thing here 12:27:42 ProcessNotCreatedException: Failed to run RuboCop command - is it installed? (SDK=/Users/.../.rbenv/versions/2.1.4/bin): Cannot run program "rubocop" (in directory "/Users/.../app_directory"): error=2, No such file or directory But rubocop exists in the SDK directory: > ls /Users/.../.rbenv/versions/2.1.4/bin/rubocop
/Users/.../.rbenv/versions/2.1.4/bin/rubocop |
@sirlantis Is there any news regarding the issue you could share? The issue has been nagging us for five weeks now. Thanks a lot! |
As sirlantis is actively working on other projects and not offline completely, I'm fearing he has chosen to no longer maintain this repo. Is anyone able to fork the repo and provide a solution? |
@elskwid Thanks. As I'm not familiar with how to launch OSX apps from the command line, how did you get
And yes, I've not been running RubyMine 3.1.1 for years. :) |
@maia I'm running RubyMine 8.0.3 - there's a menu item |
+1 for failure on RubyMine 8.0.3 and rvm
$ which ruby
/Users/username/.rvm/rubies/ruby-2.1.5/bin/ruby
$ which rubocop
/Users/username/.rvm/gems/ruby-2.1.5/bin/rubocop |
Ignores rvm gemsets not finding the rubocop binary in the global space. |
thanks @elskwid. |
Unfortunately I still get the Failed to run RuboCop command... error . |
Still can't get how to use "bundle exec mine". Please someone explain it in simple way. |
@tleish and @grbro - I fully recognize that what I'm doing is a huge hack so please take this as just my way of getting around the issue. There's more to it than just
Notice that I'm appending the path to the bundled gems to the In fact, I actually install my gems with bundler to a non-standard path ( |
Big thanks @elskwid ! Now it works :) |
Same issue here, but @elskwid's fix did not work for me. I uninstalled all rubies using rvm except the one that I am using (2.2.3).
Log: |
@maia, the README here is pretty clear 😄 :
That being said the frustration is legit. I was able to fix this by switching to the right version of Ruby (using rbenv) and running:
It's working for me now. Hope this helps! |
If you're having this issue on OSX, one fix may be opening it from a terminal:
...or the equivalent as was pointed out elsewhere:
I believe this gives it access to your |
@chenwardT's solution worked for me. Thanks! |
@chenwardT 's solution worked for me too. Actually using RubyMine's command line launcher In my case, this issue only happens when rubocop is in Gemfile. If rubocop is not bundled, it works smoothly no matter how I launch RubyMine. I'm using rbenv and RubyMine 2016.1. Update: Here's an unofficial build with #39 which works for me. |
Big thnx @elskwid work for me bundle exec mine in work project without GEM_PATH. |
@chenwardT's solution worked for me |
Thank you @chenwardT I figured it with either a osx update or the selective osx case sensitivity at work. |
While I still can't get this version to work (running OSX and rbenv, launching RubyMine from the command line), the fork by johnthagen of this repo fixed the problem for me. |
@chenwardT's solution made the trick for me too |
Bug is still present ( |
solution from @chenwardT works perfectly and nothing else works still... is this rubocop plugin discontinued now or something? looks like it has been more than a year and same bug still exists |
It works for me too. Thanks @chenwardT .
|
Issue #31 has not been solved with the release of v3.1.0, the plugin fails to load when running rbenv with ruby 2.2.4 and Rubymine 8.0.2.
Here's the idea.log:
The text was updated successfully, but these errors were encountered: