Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

activesupport 3.0.6 gem: require 'active_support/core_ext' generates "circular require" warning

#6721

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?

Reported by Alexey Muranov · April 19th, 2011 @ 09:20 AM

State: new
Milestone: none
Assigned to: Xavier Noria Xavier Noria
Importance: Low

Activity

  1. Alexey Muranov
    Alexey Muranov
    • 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.

    April 19th, 2011 @ 11:39 AM

  2. Xavier Noria
    Xavier Noria
    • Assigned user set to Xavier Noria
    • Importance changed from to Low

    Hi Alexey, could you please provide a patch?

    April 19th, 2011 @ 12:59 PM

  3. Alexey Muranov
    Alexey Muranov

    Sorry Xavier, I am new to Rails, i have never patched anything before, and i do not know where this bug originates from.

    April 19th, 2011 @ 01:02 PM

  4. Xavier Noria
    Xavier Noria

    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.

    April 19th, 2011 @ 01:07 PM

  5. Alexey Muranov
    Alexey Muranov

    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?

    April 19th, 2011 @ 01:15 PM

  6. Xavier Noria