-
Notifications
You must be signed in to change notification settings - Fork 29
Failed to parse RuboCop output on RubyMine 8 #30
Comments
I am also getting this error on Rubymine 8.0.3 (mac) on each and evey .rb file I open:
In my Gemfile I have:
In my project.gemspec file I have:
and I can verify that rubocop 0.35.1 is installed and running under console. I am running ruby 2.1.7 using rvm |
After inspecting the idea.log file I can see that rubocop is executed with the following command:
where ruby path is the absolute path under my user folder (Verified to be OK) This command when executed in terminal from the root of the project produces the following error: path/to/project/root $ /Users/[username]/.rbenv/shims/ruby exec rubocop --format json [path to project]/test.rb
ruby: No such file or directory -- exec (LoadError) The same command without the 'ruby exec' produces the right output: path/to/project/root $ rubocop --format json [path to project]/test.rb
{"metadata":{"rubocop_version":"0.35.1","ruby_engine":"ruby","ruby_version":"2.1.7","ruby_patchlevel":"400","ruby_platform":"x86_64-darwin15.0"},"files":[{"path":"test.rb","offenses":[]}],"summary":{"offense_count":0,"target_file_count":1,"inspected_file_count":1}} |
@ikappas Yeah, that should be |
Hi everyone, I just pushed 3.1.0 to JetBrains plugin registry which delegates everything to RubyMine's internal handling of Gems/Bundler/RVM/rbenv (found some new APIs in RubyMine 8 which weren't there before). Please create a new issue if the problem persists. |
I have installed the rubocop gem, also added it in the gemfile and the version is 0.35.1 but still rubymine reports, failed to parse rubocop output.
Please guide me if I am doing it wrong.
Below is the log from my system related to rubocop.
The text was updated successfully, but these errors were encountered: