warning: circular argument referenc

I just got the following message when I ran:

rake db:drop

“/home/pi/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.3/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now”

That is new to me, I have just seen since a 'bundle update"

Any comments?

Are you using compass? Googling for
timezone.rb warning: circular argument reference - now
found http://stackoverflow.com/questions/27717309/how-do-i-avoid-the-circular-argument-reference-warning-in-activesupport

Colin

No compass in my app, just a vanilla rails app. However, I am running it on a raspberrypi, but I also see this on my x86 linux box.

Check Gemfile.lock against the previous version and see which gems
updated. Presumably one of them is causing the problem if it did not
happen before the update.

Colin

I just got the following message when I ran:

rake db:drop

"/home/pi/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.3/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now"

That is new to me, I have just seen since a 'bundle update"

These warnings are new in ruby 2.2. They are fixed in recent versions of rails 4.0.x (not sure exactly which versions

Fred

I am running ActiveSupport 4.0.3, and that is not fixed.

Maybe that's a hint that it's time to update :slight_smile:

This has been fixed now.

http://weblog.rubyonrails.org/2015/6/16/Rails-3-2-22-4-1-11-and-4-2-2-have-been-released-and-more/

fix ruby 2.2 warning: circular argument
reference

https://github.com/rails/rails/commit/8fd52705eda6a2cd7e9a8a5bc723fa094e359eb7

use self.method syntax to resolve circular
argument issues

https://github.com/rails/rails/commit/3a30b12c774dfaa72acfe520e823374131631ea9

Great news! When can we expect the fix to the ad hominem attack
reference and the false dichotomy reference? :wink:

-Dave