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

Failed to run rubocop - RubyMine #36

Open chazzly opened 8 years ago

chazzly commented 8 years ago

I saw the other issues, but each seemed slightly different, so thought I would throw mine in to help track down the problem(s).

This happened immediately after updating from 3.0.1 to 3.1.0. It seemed to work fine previously.

Failed to run RuboCop command - is it installed? (SDK=C:/opscode/chefdk/embedded/bin): Cannot run program "rubocop" (in directory "C:\Users\cruhl\Documents\Work-Repos\onrepocb"): CreateProcess error=2, The system cannot find the file specified

RubyMine 8.0.3 JRE 1.8.0_51 Ruby Version 2.1.6 rubocop gem 0.30.0

celsoMartins commented 8 years ago

Same here, same rubymine, ruby versions: all that I have:

image

image

image

image

pkang commented 8 years ago

+1 I see the same issue.

pkang commented 8 years ago

I downgraded my RuboCop plugin to 3.0.1 to get things working again.

sleeptillseven commented 8 years ago

@pkang +1 thanks! works for me (manual installation of version 3.0.1) too.

jwg2s commented 8 years ago

:+1: downgrading to 3.0.1 fixed the issue. @sirlantis any idea on when 3.1.0 will be patched? Thanks!

celsoMartins commented 8 years ago

Are you using the last rubymine version? Here is not working yet.

jwg2s commented 8 years ago

@celsoMartins v3.1.0 of rubocop-for-rubymine fails against v8.0.3 of Rubymine.

maia commented 8 years ago

I can neither get 3.0.1 nor 3.1.0 to run with the most recent versions of RubyMine and Rubocop (using rbenv).

TuckerJD commented 8 years ago

+1 with: Mac OS X (Mavericks) rvm 1.26.4 RubyMine 8.0.3 Plugin RuboCop 3.1.0 Gem rubocop 0.37.2 installed and functional, both in a command-line window, and in RubyMine's terminal window.

Does anyone know how RubyMine determines the configuration for the plugin environment?

agibralter commented 8 years ago

I'm having trouble as well. Does rubocop have to be in my Gemfile? I'm using rbenv and rubocop is installed.

agibralter commented 8 years ago

Downgrading to 3.0.1 worked for me as well.

agibralter commented 8 years ago

Any updates here?

agibralter commented 8 years ago

Err. what I mean to say is that 3.0.1 seems to not work with RubyMine 2016.1...

matt-hwy1 commented 8 years ago

Where can one get version 3.0.1. I don't see it in Rubymine's version options for it. Thanks.

jwg2s commented 8 years ago

@matt-hwy1 https://github.com/sirlantis/rubocop-for-rubymine/tree/v3.0.1

matt-hwy1 commented 8 years ago

Thanks @jwg2s

pedroadame commented 8 years ago

@sirlantis Neither 3.1.0 nor 3.0.1 versions of Rubocop for Rubymine work with RubyMine 2016.1

pjfitzgibbons commented 8 years ago

Mentioned here bundle exec mine Has been working for me in 2016.1, 2016.2

sleekweasel commented 8 years ago

Strangely, even ln -s $HOME/.rvm/gems/ruby-2.1.5/bin/rubocop $HOME/.rvm/rubies/ruby-2.1.5/bin/ doesn't fix it for me, where 'rubies' is the SDK it's complaining about, and 'gems' is where I find rubocop in Rubymine's terminal.