Project

General

Profile

Bug #1474

autoload causes "circular require considered harmful" warning without circular require

Added by drbrain (Eric Hodel) about 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-05-15 trunk 23433) [i386-darwin9.7.0]
Backport:
[ruby-core:23466]

Description

=begin
$ cat a.rb
autoload :B, 'b'

B
$ cat b.rb
class B
end
$ ruby19 -wv a.rb
ruby 1.9.2dev (2009-05-15 trunk 23433) [i386-darwin9.7.0]
Error loading gem paths on load path in gem_prelude
no implicit conversion from nil to integer
internal:gem_prelude:320:in []='
<internal:gem_prelude>:320:in
push_all_highest_version_gems_on_load_path'
internal:gem_prelude:344:in `'
/Users/drbrain/tmp/b.rb:1: warning: loading in progress, circular require considered harmful - /Users/drbrain/tmp/b.rb
=end

History

#1

Updated by nobu (Nobuyoshi Nakada) about 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23440.
=end

Also available in: Atom PDF