简体   繁体   English

Bundler :: GemRequireError:尝试加载gem'omniauth-oauth2'时发生错误

[英]Bundler::GemRequireError: There was an error while trying to load the gem 'omniauth-oauth2'

I have a bizzare error and i do not seem to find any way to fix it. 我有一个奇怪的错误,我似乎找不到任何解决方法。 Basically my heroku deployment fails with that message. 基本上,我的heroku部署失败并显示该消息。

More: 更多:

Removing bourbon (4.3.1)
remote:        Removing hashie (3.5.1)
remote: -----> Detecting rake tasks
remote: sh: 3: Syntax error: Unterminated quoted string
remote: sh: 3: Syntax error: Unterminated quoted string
remote:  !
remote:  !     Could not detect rake tasks
remote:  !     ensure you can run `$ bundle exec rake -P` against your app
remote:  !     and using the production group of your Gemfile.
remote:  !     rake aborted!
remote:  !     Bundler::GemRequireError: There was an error while trying to load the gem 'omniauth-oauth2'.
remote:  !     Gem Load Error is: private method `warn' called for nil:NilClass
remote:  !     Backtrace for gem load error is:
remote:  !     /tmp/build_569fee1a9e7d8fb80c93fc3634a76861/vendor/bundle/ruby/2.2.0/gems/hashie-3.5.2/lib/hashie/mash.rb:334:in `log_built_in_message'

i tried a lot of stuff, cleaning assets, precompiling, tmp clear, updating gems, running gem pristine, nothing seems to work. 我尝试了很多东西,清理资产,预编译,tmp清除,更新宝石,运行宝石原始状态,似乎没有任何效果。

it was working fine yesterday - and today i was no way near touching the gemfile or omniauth 昨天工作正常-今天我几乎无法触及gemfile或omniauth

Any help appreciated. 任何帮助表示赞赏。

Turns out hashie gem version 3.5.2 and omniauth-oauth2 1.3.1 do not mix well. 原来hashie gem版本3.5.2和omniauth-oauth2 1.3.1混合得不好。

Reverted back to hashie gem 3.4.4 and works. 恢复为hashie gem 3.4.4即可使用。

Version 3.5.3+ of Hashie will solve the problem for you now. Hashie的3.5.3+版本现在可以为您解决问题。 We added some logging to the gem to help people that were getting unexpected behavior from setting keys with names that collided with built-in methods in Hash. 我们在gem上添加了一些日志记录,以帮助那些通过使用与Hash中的内置方法相冲突的名称设置键来获得意外行为的人们。 That logging caused a bunch of issues in OmniAuth and the Elasticsearch gems. 该日志记录在OmniAuth和Elasticsearch gem中引起了很多问题。 Those problems have all been fixed and we have good test coverage for integrations with OmniAuth and will be adding tests for Elasticsearch as well. 这些问题已全部解决,我们可以很好地覆盖与OmniAuth集成的测试范围,并且还将为Elasticsearch添加测试。

Apologies for the problems. 对于这些问题表示歉意。 Please let us know at https://github.com/intridea/hashie/issues if any more problems occur! 如果出现更多问题,请通过https://github.com/intridea/hashie/issues告知我们!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试加载gem'uglifier'时出错。 (捆绑器:: GemRequireError) - There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) 尝试加载gem'activeadmin'时出错。 (捆扎机:: GemRequireError) - error while trying to load the gem 'activeadmin'. (Bundler::GemRequireError) Bundler :: GemRequireError:尝试加载宝石“ manticore”时出错 - Bundler::GemRequireError: There was an error while trying to load the gem 'manticore' 尝试加载gem'rail-api'时出错。 (捆扎机:: GemRequireError) - There was an error while trying to load the gem 'rails-api'. (Bundler::GemRequireError) 尝试加载gem'sass-rails'时出错。 (捆绑器:: GemRequireError) - There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError) “尝试加载gem'mysql2'时出错了。 (Bundler :: GemRequireError)“redmine安装后出现错误 - “There was an error while trying to load the gem 'mysql2'. (Bundler::GemRequireError)” error shows up after redmine installation Ruby 2.4升级后 - 尝试加载gem'uglifier'时出错(Bundler :: GemRequireError) - After Ruby 2.4 upgrade - error while trying to load the gem 'uglifier' (Bundler::GemRequireError) Bundler :: GemRequireError:尝试加载gem'factory_bot_rails'时出错 - Bundler::GemRequireError: There was an error while trying to load the gem 'factory_bot_rails' 尝试加载gem'ie_iframe_cookies'时出错。 (捆扎机:: GemRequireError) - There was an error while trying to load the gem 'ie_iframe_cookies'. (Bundler::GemRequireError) (Bundler :: GemRequireError)Gem加载错误为:未初始化的常量AbstractController :: Rendering - (Bundler::GemRequireError) Gem Load Error is: uninitialized constant AbstractController::Rendering
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM