time_zone.rb:270:警告:循环参数引用 - 现在

时间:2015-03-19 09:48:05

标签: ruby

我正在使用Ruby on Rails,我为宝石安装了所有必要的应用程序和更新。我已经筋疲力尽/研究了这个错误的大部分可能答案,并尝试了所有这些,但仍然没有运气。

/Users/u=Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/activesupport-3.2.13/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now
/Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/runtime.rb:76:in `require': cannot load such file -- false (LoadError)
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/runtime.rb:72:in `each'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/runtime.rb:72:in `block in require'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/runtime.rb:61:in `each'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/runtime.rb:61:in `require'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler.rb:134:in `require'
   from /Users/Username/Downloads/job4quote/config/application.rb:7:in `'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in '
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
   from /Users/Username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `'
   from script/rails:6:in `require'
   from script/rails:6:in `'

有没有办法访问这些.rb文件以进行必要的更改?

如此处所示 - > warning: circular argument reference

2 个答案:

答案 0 :(得分:1)

问题似乎是由更高版本的ruby(在我的情况下使用rails 3.2.13和ruby 2.2)和使用旧版本的rails引起的。一个对我有用的解决方案是使用ruby 2.0并更新我的gem文件(RVM Capistrano)。

vpc-2

运行bundle install命令。之后一切都按预期工作。

答案 1 :(得分:-1)

愚蠢的我,你可以通过浏览终端

来访问该文件

$ open .rbenv / versions / 2.2.1 / lib / ruby​​ / gems / 2.2.0 / gems / activesupport-3.2.13 / lib / active_support / values

并对该文件进行了更改,如链接所示。 对不起新的ruby。