This project is archived and is in readonly mode.
activesupport 3.0.6 gem: require 'active_support/core_ext' generates "circular require" warning
Reported by Alexey Muranov | April 19th, 2011 @ 09:20 AM
I am getting in activesupport 3.0.6 a "circular require" warning
when running ruby or irb with -w option.
There were no such warning in 3.0.5.
If I do
$ irb -w
> require 'active_support/core_ext'
I get
"warning: loading in progress, circular require considered
harmful...".
If I do
$ irb -w
> gem 'activesupport', '=3.0.5'
> require 'active_support/core_ext'
it works quietly.
It this a bug in activesupport 3.0.6 gem?
Comments and changes to this ticket
-
Alexey Muranov April 19th, 2011 @ 11:39 AM
- Tag changed from active_support core_ext, 3.0.6, activesupport to active_support core_ext, 3.0.6, 3.0.7, activesupport
This warning is still present in
activesupport 3.0.7
. -
Xavier Noria April 19th, 2011 @ 12:59 PM
- Assigned user set to Xavier Noria
- Importance changed from to Low
Hi Alexey, could you please provide a patch?
-
Alexey Muranov April 19th, 2011 @ 01:02 PM
Sorry Xavier, I am new to Rails, i have never patched anything before, and i do not know where this bug originates from.
-
Xavier Noria April 19th, 2011 @ 01:07 PM
Cool. I emailed some starting material via the mailing list in case you'd like to try. It's a good exercise, and since this is a circular require it does not require knowledge of Rails internals. I encourage you to try it if you feel like it :).
Otherwise, no worries Alexey, perhaps someone may provide a patch.
-
Alexey Muranov April 19th, 2011 @ 01:15 PM
Thanks Xavier, i'll think about it.
Was i supposed to receive your message through the mailing list?
I wasn't receiving any messages, so i just activated "Ruby on Rails" in my subscriptions, it was off.
Can you send it to me directly at muranov@math.univ-toulouse.fr please? -
Xavier Noria April 19th, 2011 @ 02:26 PM
I replied to your email in rubyonrails-talk. This is the thread:
http://groups.google.com/group/rubyonrails-talk/browse_thread/threa...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>