# Rake appdoc errors

**URL:** <https://www.ruby-forum.com/t/rake-appdoc-errors/74508>\
**Category:** Rails\
**Created:** [February 28, 2006, 4:16am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508 "2006-02-28T04:16:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![feldpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@feldpost](https://www.ruby-forum.com/u/feldpost)\
**Post date:** [February 28, 2006, 4:16am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508/1 "2006-02-28T04:16:40Z")

</div>

when running rake rake appdoc (os x 10.4) i get the following error:

unrecognized option `–line-numbers --inline-source’

any ideas?

sebastian

---

<div class="post-metadata">

**Author:** ![feldpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@feldpost](https://www.ruby-forum.com/u/feldpost)\
**Post date:** [February 28, 2006, 4:30am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508/2 "2006-02-28T04:30:07Z")

</div>

On Mon, 2006-02-27 at 21:13 -0600, Sebastian F. wrote:

> when running rake rake appdoc (os x 10.4) i get the following error:
> 
> unrecognized option `–line-numbers --inline-source’
> 
> any ideas?

* * *

yep - pulled my hair out on this a few days ago…

[http://dev.rubyonrails.org/ticket/3757](http://dev.rubyonrails.org/ticket/3757)

from what I saw, there are 3 instances in documentation.rake that had to  
be fixed (at least on my system).

so when I ran patch…it only fixed the first one and it took me a few  
WTF moments to figure out that there were actually 2 more instances that  
didn’t get patched.

Craig

---

<div class="post-metadata">

**Author:** ![feldpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@feldpost](https://www.ruby-forum.com/u/feldpost)\
**Post date:** [February 28, 2006, 4:42am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508/3 "2006-02-28T04:42:27Z")

</div>

How did you fix those?

---

<div class="post-metadata">

**Author:** ![feldpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@feldpost](https://www.ruby-forum.com/u/feldpost)\
**Post date:** [February 28, 2006, 5:23am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508/4 "2006-02-28T05:23:47Z")

</div>

assuming that you don’t understand patch…see this…

[http://dev.rubyonrails.org/changeset/3649](http://dev.rubyonrails.org/changeset/3649)

this is the change that you need to make to fix it.

what is currently in your documentation.rake is in red  
what you need to make those lines look like is in green

Craig

---

<div class="post-metadata">

**Author:** ![feldpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@feldpost](https://www.ruby-forum.com/u/feldpost)\
**Post date:** [February 28, 2006, 8:21am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508/5 "2006-02-28T08:21:41Z")

</div>

On 2/28/06, Sebastian F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How did you fix those?

On my system - a Mac OS X with ruby 1.8.4 installed from  
sources and gem - I had to fix this files:

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/rakefile  
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/Rakefile  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/rakefile  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/rails\_generator/generators/components/plugin/templates/Rakefile  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/documentation.rake  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/documentation.rake

The change consists of adding rdoc options using ‘\<\<’ operator.  
So I changed every occourrence of

'rdoc.options \<\< ‘–line-numbers --inline-source …’

with

rdoc.options \<\< ‘–line-numbers’ \<\< ‘–inline-source’ \<\< …

Ciao.  
– fabio

---

<div class="post-metadata">

**Author:** ![feldpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@feldpost](https://www.ruby-forum.com/u/feldpost)\
**Post date:** [February 28, 2006, 9:19am UTC](https://www.ruby-forum.com/t/rake-appdoc-errors/74508/6 "2006-02-28T09:19:58Z")

</div>

Thanks all. Did the edits and finally got it to work. Ouch.

sebastian
