richpeck / exception_handler

Ruby on Rails Custom Error Pages
509 stars 70 forks source link

after adding gem, can't boot my app, crashes with railties-6.0.3.3/lib/rails/railtie/configuration.rb:96:in `method_missing': undefined method `assets' for #<Rails::Engine::Configuration:0x00007f9048a0a188> (NoMethodError) #98

Closed jasonfb closed 3 years ago

jasonfb commented 3 years ago

please note I suspect this has something to do with my app because I tested on a clean Rails 6.0.3 app and was able to get the gem to work fine

Rails 6.0.3

Traceback (most recent call last):
    62: from bin/rails:3:in `<main>'
    61: from bin/rails:3:in `load'
    60: from /Users/jason/Work/VeueLive/veue/bin/spring:15:in `<top (required)>'
    59: from /Users/jason/Work/VeueLive/veue/bin/spring:15:in `require'
    58: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
    57: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
    56: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
    55: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
    54: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
    53: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
    52: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
    51: from /Users/jason/Work/VeueLive/veue/bin/rails:9:in `<top (required)>'
    50: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
    49: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
    48: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
    47: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    46: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    45: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    44: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    43: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    42: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/commands.rb:18:in `<main>'
    41: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/command.rb:46:in `invoke'
    40: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/command/base.rb:69:in `perform'
    39: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
    38: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
    37: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
    36: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/commands/server/server_command.rb:138:in `perform'
    35: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/commands/server/server_command.rb:138:in `tap'
    34: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/commands/server/server_command.rb:141:in `block in perform'
    33: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
    32: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
    31: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
    30: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    29: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    28: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    27: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    26: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    25: from /Users/jason/Work/VeueLive/veue/config/application.rb:19:in `<main>'
    24: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler.rb:174:in `require'
    23: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `require'
    22: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `each'
    21: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `block in require'
    20: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `each'
    19: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:74:in `block (2 levels) in require'
    18: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    17: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    16: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    15: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    14: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    13: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/exception_handler-0.8.0.0/lib/exception_handler.rb:50:in `<main>'
    12: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/exception_handler-0.8.0.0/lib/exception_handler.rb:50:in `glob'
    11: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
    10: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
     9: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
     8: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
     7: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
     6: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
     5: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
     4: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
     3: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/exception_handler-0.8.0.0/lib/exception_handler/engine.rb:14:in `<main>'
     2: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/exception_handler-0.8.0.0/lib/exception_handler/engine.rb:15:in `<module:ExceptionHandler>'
     1: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/exception_handler-0.8.0.0/lib/exception_handler/engine.rb:35:in `<class:Engine>'
/Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.3/lib/rails/railtie/configuration.rb:96:in `method_missing': undefined method `assets' for #<Rails::Engine::Configuration:0x00007f9b0e0e5848> (NoMethodError)