Ruby + yaml = warnings???

K

Kurt V. Hindenburg

% ruby --version
ruby 1.8.3 (2005-09-21) [i686-linux]

% cat a.rb
require 'yaml'

o = [ 'array', 'of', 'items' ]
o2 = YAML::load( o.to_yaml )

% ruby -w a.rb
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
/usr/lib/ruby/1.8/yaml/types.rb:13: warning: method redefined; discarding old
initialize
/usr/lib/ruby/1.8/yaml/types.rb:28: warning: method redefined; discarding old
initialize
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):6: warning: instance variable @taguri not initialized
(eval):6: warning: instance variable @taguri not initialized
(eval):6: warning: instance variable @taguri not initialized
(eval):6: warning: instance variable @taguri not initialized
/usr/lib/ruby/1.8/yaml.rb:133: warning: instance variable @input not
initialized
 
B

Bob Hutchison

FYI, no warnings in 1.8.2

% ruby --version
ruby 1.8.3 (2005-09-21) [i686-linux]

% cat a.rb
require 'yaml'

o = [ 'array', 'of', 'items' ]
o2 = YAML::load( o.to_yaml )

% ruby -w a.rb
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
 
E

Edwin van Leeuwen

Bob said:
FYI, no warnings in 1.8.2

On Dec 11, 2005, at 9:22 PM, Kurt V. Hindenburg wrote:

I played around with yaml on 1.8.3 and found out it is completely broken
(doesn't put --- before objects, misses returns). If you want to use
yaml you should upgrade to a 1.8.4 beta or downgrade to 1.8.2
 
E

Edwin van Leeuwen

Edwin said:
I played around with yaml on 1.8.3 and found out it is completely broken
(doesn't put --- before objects, misses returns). If you want to use
yaml you should upgrade to a 1.8.4 beta or downgrade to 1.8.2
yaml seems to be broken on 1.8.4_pre2 too, so I suggest downgrading to
1.8.2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top