mrcljx / rubocop-for-rubymine

DEPRECATED: RubyMine supports RuboCop now
https://blog.jetbrains.com/ruby/2017/01/rubymine-2017-1-eap-2-creating-gemsets-rubocop-support/
MIT License
131 stars 29 forks source link

Does not start with RubyMine #47

Open BlookHo opened 7 years ago

BlookHo commented 7 years ago

Hi! I've been prepared to rubocop:

  1. gem "rubocop"

  2. added file to root: .rubocop.yml (still empty)

  3. downloaded: RubocopForRubymine.zip

  4. Install plugin from disk

  5. Apply > restart RMine

But Got IDE Error and can not start: Failed to run RuboCop command - is it installed? (SDK=/home/flyingminer/.rvm/rubies/ruby-2.3.1/bin): Cannot run program "rubocop" (in directory "/home/flyingminer/RubymineProjects/experteese"): error=2, No such file or directory

Any ideas? Thanks )

hms commented 7 years ago

I was able to make it work by linking the rubocop script from the gem location to #{Rails.root}/bin and starting rubymine with the mine command (it doesn't work via spotlight or the App).

a0s commented 7 years ago

Not show IDE Error after add symlink in current dir

ln -s `which rubocop` ~/current_project/rubocop

but still not working