misogi / vscode-ruby-rubocop

Rubocop extension for Visual Studio Code
https://marketplace.visualstudio.com/items/misogi.ruby-rubocop
MIT License
137 stars 68 forks source link

cannot load such file -- rubocop-rspec #110

Open srternasco opened 5 years ago

srternasco commented 5 years ago

I have some RuboCop-RSpec cops configured in my .rubocop.yml file, and that is breaking the plugin. Let me know if you need more info.

Every time I save a file a warning dialog box appears in VSC interface.

cannot load such file -- rubocop-rspec /Users/Richi/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in

`require' /Users/John/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 

`require' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/config_loader_resolver.rb:15:in

`block in resolve_requires' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/config_loader_resolver.rb:11:in

`each' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/config_loader_resolver.rb:11:in

`resolve_requires' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/config_loader.rb:45:in

`load_file' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/config_loader.rb:86:in 

`configuration_from_file' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/config_store.rb:44:in

`for' /Users/John/.rvm/gems/ruby-2.6.3/gems/rubocop-0.74.0/lib/rubocop/target_finder.rb:185:in

`block ...

Thanks

rwojnarowski commented 4 years ago

Any updates on this? Issue is still present

KBeDevel commented 4 years ago

Same issue here, using Fedora 31 :(

rwojnarowski commented 4 years ago

Temp fix that worked for me (im using rbenv): grep all installed rubocop versions on your machine:

Uninstall unused version in your current project: