Project

General

Profile

Actions

Bug #1474

closed

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

Added by drbrain (Eric Hodel) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
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

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 15 years ago

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

=begin
Applied in changeset r23440.
=end

Actions

Also available in: Atom PDF

Like0
Like0