Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Plugin runs ruby instead of rubocop command #40

Open
m-koepke opened this issue Feb 24, 2016 · 3 comments
Open

Plugin runs ruby instead of rubocop command #40

m-koepke opened this issue Feb 24, 2016 · 3 comments

Comments

@m-koepke
Copy link

Hi,

I recently got a new mac and installed RubyMine and the rubocop-for-rubymine plugin. I am using rbenv without gemsets.

RubyMine 8 and 8.5 EAP
rubocop plugin 3.1

Now RubyMine is unable to run. It seems it is not picking up the rubocop command correctly but instead runs ruby. From the log:

2016-02-24 13:43:11,227 [  10713]   INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/mivl/.rbenv/shims/ruby --format json /Users/mivl/work/projects/rails/ohl/ikos_api/spec/models/ops/nachlieferung/order_dispatcher_spec.rb], working dir =[/Users/mivl/work/projects/rails/ohl/ikos_api]
2016-02-24 13:43:11,299 [  10785]   WARN - hub.sirlantis.rubymine.rubocop - Failed to parse RuboCop output

As I was unable to get any documentation of the RubyMine or IntelliJ IDEA, I wasn't really able to figure out why it would run ruby instead of rubocop for me.
I basically reverted to a previous version and applied some kotlin changes: changeset
This works for me (again: rbenv without gemsets) but obviously is some custom code that was removed before to improve handling of bundler and stuff.

@chetanism
Copy link

I have the same issue but with IntelliJ Idea (with ruby plugin).

IntelliJ Idea: 15.0.2
Ruby Plugin: 0.8.3
Rubocop Plugin: 3.1.0
rubocop: 0.37.2
ruby: 2.1.5

Rest of the setup is same as @mvladimirovic.

Following is the debug log (if it helps)

2016-02-23 20:30:05,110 [6974663]   WARN - hub.sirlantis.rubymine.rubocop - RuboCop exited with 1 
2016-02-23 20:30:14,120 [6983673]  DEBUG - hub.sirlantis.rubymine.rubocop - Executing RuboCop (SDK=/Users/chetanv/.rbenv/versions/2.1.5/bin)/Users/chetanv/.rbenv/shims/ruby --format json /Users/chetanv/projects/my_project/some_file.rb 
2016-02-23 20:30:14,120 [6983673]   INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/chetanv/.rbenv/shims/ruby --format json /Users/chetanv/projects/my_project/some_file.rb], working dir =[/Users/chetanv/projects/my_project] 
2016-02-23 20:30:14,187 [6983740]   WARN - hub.sirlantis.rubymine.rubocop - Failed to parse RuboCop output 
java.io.EOFException: End of input at line 1 column 1

Rest of the log has stack trace for not being able to read the json output because it's empty.

@mvladimirovic, would it be possible for you to share the plugin zip that you have compiled. Ta.

@ghprince
Copy link

+1 same issue here

@danmayer
Copy link

danmayer commented Jul 6, 2016

same issue, any work arounds?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants