R
Ronald Fischer
When I require both rake and FileUtils, i.e.
require 'rake' # for String#ext
require 'FileUtils'
I get the following warnings:
c:/ruby186/lib/ruby/1.8/FileUtils.rb:93: warning: already initialized
constant OPT_TABLE
c:/ruby186/lib/ruby/1.8/FileUtils.rb:1163: warning: already initialized
constant S_IF_DOOR
c:/ruby186/lib/ruby/1.8/FileUtils.rb:1513: warning: already initialized
constant METHODS
Who is to blame? FileUtils, rake, or me (because I'm not supposed to
require both)?
What can I do to avoid the warnings? Please do not suggest simply
omitting FileUtils
when I'm using rake (I guess the warning results from rake also
including FileUtils).
I don't require them *directly* in the same module. Instead I have=20
require 'rake'
require 'SomeOtherModule'
in one file, and SomeOtherModule.rb happens to use FileUtils, and this
causes the
warnings in the end.
Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162
require 'rake' # for String#ext
require 'FileUtils'
I get the following warnings:
c:/ruby186/lib/ruby/1.8/FileUtils.rb:93: warning: already initialized
constant OPT_TABLE
c:/ruby186/lib/ruby/1.8/FileUtils.rb:1163: warning: already initialized
constant S_IF_DOOR
c:/ruby186/lib/ruby/1.8/FileUtils.rb:1513: warning: already initialized
constant METHODS
Who is to blame? FileUtils, rake, or me (because I'm not supposed to
require both)?
What can I do to avoid the warnings? Please do not suggest simply
omitting FileUtils
when I'm using rake (I guess the warning results from rake also
including FileUtils).
I don't require them *directly* in the same module. Instead I have=20
require 'rake'
require 'SomeOtherModule'
in one file, and SomeOtherModule.rb happens to use FileUtils, and this
causes the
warnings in the end.
Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162