Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with rubocop 0.73.0 #92

Closed
plentz opened this issue Jul 23, 2019 · 1 comment
Closed

Incompatibility with rubocop 0.73.0 #92

plentz opened this issue Jul 23, 2019 · 1 comment

Comments

@plentz
Copy link

plentz commented Jul 23, 2019

This changed since the last update of rubocop. PS: I think more people will bump into this because rubocop recommend require false and rubocop-rails don't.

  gem 'rubocop', require: false
  gem 'rubocop-rails'

To make it work I had to change to

  gem 'rubocop', require: false
  gem 'rubocop-rails', require: false

Expected behavior

Just works.

Actual behavior

Traceback (most recent call last):
	51: from /Users/user/src/github.com/company/project/bin/rails:4:in `<main>'
	50: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
	49: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
	48: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
	47: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	46: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
	45: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	44: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
	43: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
	42: from /Users/user/.gem/ruby/2.5.3/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<top (required)>'
	41: from /Users/user/.gem/ruby/2.5.3/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke'
	40: from /Users/user/.gem/ruby/2.5.3/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform'
	39: from /Users/user/.gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	38: from /Users/user/.gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	37: from /Users/user/.gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	36: from /Users/user/.gem/ruby/2.5.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `perform'
	35: from /Users/user/.gem/ruby/2.5.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `tap'
	34: from /Users/user/.gem/ruby/2.5.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:145:in `block in perform'
	33: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
	32: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
	31: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
	30: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	29: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
	28: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	27: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
	26: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
	25: from /Users/user/src/github.com/company/project/config/application.rb:7:in `<top (required)>'
	24: from /opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler.rb:114:in `require'
	23: from /opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `require'
	22: from /opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `each'
	21: from /opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `block in require'
	20: from /opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `each'
	19: from /opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:81:in `block (2 levels) in require'
	18: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	17: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
	16: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	15: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
	14: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
	13: from /Users/user/.gem/ruby/2.5.3/gems/rubocop-rails-2.0.1/lib/rubocop-rails.rb:12:in `<top (required)>'
	12: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
	11: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
	10: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
	 9: from /Users/user/.gem/ruby/2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
	 8: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	 7: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
	 6: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	 5: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
	 4: from /Users/user/.gem/ruby/2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
	 3: from /Users/user/.gem/ruby/2.5.3/gems/rubocop-rails-2.0.1/lib/rubocop/cop/rails_cops.rb:3:in `<top (required)>'
	 2: from /Users/user/.gem/ruby/2.5.3/gems/rubocop-rails-2.0.1/lib/rubocop/cop/rails_cops.rb:6:in `<module:RuboCop>'
	 1: from /Users/user/.gem/ruby/2.5.3/gems/rubocop-rails-2.0.1/lib/rubocop/cop/rails_cops.rb:7:in `<module:Cop>'
/Users/user/.gem/ruby/2.5.3/gems/rubocop-rails-2.0.1/lib/rubocop/cop/rails_cops.rb:7:in `remove_const': constant RuboCop::Cop::Rails not defined (NameError)

RuboCop version

$ bundle exec rubocop -V
0.73.0 (using Parser 2.6.3.0, running on ruby 2.5.3 x86_64-darwin18)
@plentz
Copy link
Author

plentz commented Jul 23, 2019

Duplicates #79

@plentz plentz closed this as completed Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant