Yaml error running `ri String#unpack`

F

Frank Mitchell

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.
 

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

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top