[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Yaml error running `ri String#unpack`

Frank Mitchell

10/20/2004 3:43:00 AM

I'm not sure whether this is a YAML bug or a ri bug, so in a USENET
tradition I'm going to bother everyone with it.

----------------------------------------------------------------------
$ ruby --version
ruby 1.8.2 (2004-07-29) [i686-linux]
$ ri --version
ri: beta1 (1.2.2.8 2004/04/02)
$ ri String#unpack
/usr/local/lib/ruby/1.8/yaml.rb:119:in `load': parse error on line 12,
col -1: `full_name: String#unpack (ArgumentError)
is_singleton: false
name: unpack
params: "str.unpack(format) => anArray\n"
visibility: public' from /usr/local/lib/ruby/1.8/yaml.rb:119:in `load'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:71:in
`deserialize'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:46:in
`get_method'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:46:in `open'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:46:in
`get_method'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:40:in
`report_method_stuff'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:102:in
`get_info_for'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:122:in
`process_args'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:121:in `each'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:121:in
`process_args'
from /usr/local/bin/ri:21
----------------------------------------------------------------------

Looking at the file, there's a *REALLY* long double-quoted string as the
value of the previous key. (Arguably that string would be better as a
literal block.) Not having looked at the Syck source, I'd suspect some
sort of error when scanning a string longer than a buffer ... but Why
should feel free to mock me mercilessly.

Thanks to anyone for any help.

--
Frank Mitchell (fmitchell each acm period org)

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attach...