Bugs: Browse | Submit New | Admin

[#26181] rdoc-osa blows up - workaround

Date:
2009-06-10 01:45
Priority:
3
Submitted By:
Pee Dee (peedee)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
rdoc-osa blows up - workaround

Detailed description
rdoc-osa blows up generating docs for Apps on rdoc 2.4.3, Leopard 10.5.7, ruby 1.8.6...

Where <AppName> is something like iTunes...

<code>
#> rdoc-osa --name <AppName>
/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/lib/rbosa.rb:470: warning: Passing no parameters to XML::Parser.new is deprecated.
Pass an instance of XML::Parser::Context instead.
XML::Parser#string is deprecated.  Use XML::Parser.string instead
Parsing sources with 2 thread(s)...
100% [ 1/ 1]  .../folders/mZ/mZVEDyA5FOWgOem4qePNZU+++TM/-Tmp-/iTunes-0-16579.rb

Generating Darkfish...
uh-oh! RDoc had a problem:
could not find template "/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/data/rubyosa/rdoc_html.rb"

run with --debug for full backtrace
Error when executing `rdoc  --template '/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/data/rubyosa/rdoc_html.rb'  --title
'iTunes RubyOSA API'  --main OSA  "/var/folders/mZ/mZVEDyA5FOWgOem4qePNZU+++TM/-Tmp-/iTunes-0-16579.rb"' : 256
</code>

Workaround is to note the temp file, and call rdoc manually, eg.

<code.
#> rmdir ./doc
#> rdoc --title '<AppName> RubyOSA API' --main OSA <fullpathtotempfile>

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item