You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
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.
To make it work I had to change to
Expected behavior
Just works.
Actual behavior
RuboCop version
The text was updated successfully, but these errors were encountered: