rubocop doesn't run

Created on 12 Jun 2016  Â·  3Comments  Â·  Source: rubocop-hq/rubocop

I can't run it. Here

➜  ezworks-online git:(master) ✗ gem install rubocop
Fetching: rubocop-0.40.0.gem (100%)
Successfully installed rubocop-0.40.0
1 gem installed
➜  ezworks-online git:(master) ✗ rubocop
/Users/andrei/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x3fd989cb07e4 rubocop-0.40.0> (NoMethodError)
        from /Users/andrei/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
        from /Users/andrei/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
        from /Users/andrei/.rvm/gems/ruby-2.3.0/gems/rubocop-0.40.0/bin/rubocop:7:in `<top (required)>'
        from /Users/andrei/.rvm/gems/ruby-2.3.0/bin/rubocop:23:in `load'
        from /Users/andrei/.rvm/gems/ruby-2.3.0/bin/rubocop:23:in `<main>'
        from /Users/andrei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
        from /Users/andrei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'

Most helpful comment

This issue deals with the same problem and says that the solution is to re-install ruby.

All 3 comments

What about other gems and other versions of rubocop? Do they work? How about other ruby versions?

This issue deals with the same problem and says that the solution is to re-install ruby.

@jonas054, my apologies for slow response.
I've updated rubygems and reinstalled ruby as link suggested. It works now,
Thank you for your help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NobodysNightmare picture NobodysNightmare  Â·  3Comments

ecbrodie picture ecbrodie  Â·  3Comments

mikegee picture mikegee  Â·  3Comments

bquorning picture bquorning  Â·  3Comments

joromir picture joromir  Â·  3Comments