Project

General

Profile

Actions

Bug #2623

closed

drb - circular require

Added by Eregon (Benoit Daloze) about 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2010-01-14 trunk 26319) [x86_64-darwin10.2.0]
Backport:
[ruby-core:27661]

Description

=begin
Some gems(for example rspec) require drb:
require "drb/drb" # It should probably be just "require 'drb'", but it's the same anyway.

/usr/local/lib/ruby/1.9.1/drb/eq.rb:1: warning: loading in progress, circular require considered harmful - /usr/local/lib/ruby/1.9.1/drb/drb.rb
...
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec.rb:6:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec.rb:6:in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner.rb:6:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner.rb:6:in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner/drb_command_line.rb:1:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner/drb_command_line.rb:1:in require'
from /usr/local/lib/ruby/1.9.1/drb/drb.rb:57:in <top (required)>' from /usr/local/lib/ruby/1.9.1/drb/drb.rb:57:in require'
from /usr/local/lib/ruby/1.9.1/drb/eq.rb:1:in <top (required)>' from /usr/local/lib/ruby/1.9.1/drb/eq.rb:1:in require'

This is due to drb/eq.rb, with this line:
require 'drb/drb'
That seems useless to me. You will never require this file directly, as it just allow to compare DRBObject.

So, shouldn't that line be removed ?
=end

Actions #1

Updated by naruse (Yui NARUSE) about 14 years ago

  • Status changed from Open to Closed

=begin
Don't use "see" when you want to close a ticket.
=end

Actions

Also available in: Atom PDF

Like0
Like0