hashie / extensions / dash / indifferent_access(LoadError)导轨

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hashie / extensions / dash / indifferent_access(LoadError)导轨相关的知识,希望对你有一定的参考价值。

运行最新的Ruby和Rails版本。 Rails应用无法加载hashie--indifferent_access扩展名。我尝试重新加载整个滑轨,而红宝石仍然是相同的错误。这是堆栈跟踪:

    Traceback (most recent call last):
    67: from bin/rails:3:in `<main>'
    66: from bin/rails:3:in `load'
    65: from /Users/aa/Documents/aa-projects/lp/spm/bin/spring:15:in `<top (required)>'
    64: from /Users/aa/Documents/aa-projects/lp/spm/bin/spring:15:in `require'
    63: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
    62: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
    61: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
    60: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
    59: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
    58: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
    57: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
    56: from /Users/aa/Documents/aa-projects/lp/spm/bin/rails:9:in `<top (required)>'
    55: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require'
    54: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
    53: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `block in require'
    52: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    51: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    50: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    49: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    48: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    47: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/railties-6.0.2.1/lib/rails/commands.rb:18:in `<top (required)>'
    46: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/railties-6.0.2.1/lib/rails/command.rb:46:in `invoke'
    45: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/railties-6.0.2.1/lib/rails/command/base.rb:69:in `perform'
    44: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
    43: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
    42: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
    41: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in `perform'
    40: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in `tap'
    39: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:141:in `block in perform'
    38: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require'
    37: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
    36: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `block in require'
    35: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    34: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    33: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    32: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    31: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    30: from /Users/aa/Documents/aa-projects/lp/spm/config/application.rb:7:in `<top (required)>'
    29: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
    28: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
    27: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
    26: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
    25: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
    24: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
    23: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    22: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    21: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    20: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    19: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    18: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/diffbot-0.1.22/lib/diffbot.rb:4:in `<top (required)>'
    17: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require'
    16: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
    15: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `block in require'
    14: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    13: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    12: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    11: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    10: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
     9: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/diffbot-0.1.22/lib/diffbot/article.rb:2:in `<top (required)>'
     8: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require'
     7: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in `load_dependency'
     6: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `block in require'
     5: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require'
     4: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:41:in `rescue in require'
     3: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
     2: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in `register'
     1: from /Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/aa/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': cannot load such file -- hashie/extensions/dash/indifferent_access (LoadError)
答案

请检查您是否已将gem 'hashie'添加到Gemfile并运行bundle install

以上是关于hashie / extensions / dash / indifferent_access(LoadError)导轨的主要内容,如果未能解决你的问题,请参考以下文章

在 Rails 的嵌套哈希中搜索键

DAS存储未死,再次欲获重生

consul-nomad的WEB UI

如何通过DAS连接GaussDB

DAS帐户是什么

DAS NAS SAN