src_code_href wrong number of arguments (1 for 2)

21 views
Skip to first unread message

Kit Menke

unread,
Apr 18, 2011, 1:10:31 PM4/18/11
to PDoc
I'm having trouble getting started with PDoc and am new to ruby/rake.
I'm using Ubuntu 10.10, clone the repository from git, and installed
everything from scratch.

I'm just trying to get the test working at the moment using Ajax.js
but keep getting this "wrong number of arguments" error.

Any help would be much appreciated.
Thanks,
Kit

kit@kits-lemur:~/Documents/Code/pdoc/test/fixtures$ rake doc --trace
(in /home/kit/Documents/Code/pdoc)
** Invoke doc (first_time)
** Invoke remove_doc (first_time)
** Execute remove_doc
rm -rf /home/kit/Documents/Code/pdoc/lib/../output/javascripts /home/
kit/Documents/Code/pdoc/lib/../output/index.html /home/kit/Documents/
Code/pdoc/lib/../output/dollar /home/kit/Documents/Code/pdoc/lib/../
output/images /home/kit/Documents/Code/pdoc/lib/../output/stylesheets
** Invoke build_doc (first_time)
** Execute build_doc

Markdown parser: bluecloth
Syntax highlighter: pygments
Output directory: /home/kit/Documents/Code/pdoc/output

Parsing JS files for PDoc comments:
Parsing /home/kit/Documents/Code/pdoc/test/fixtures/ajax.js...
Finished parsing files in 2.263411 seconds.

Building documentation tree. Finished in 0.004242 seconds.

Generating documentation:
Rendering dollar...
rake aborted!
wrong number of arguments (1 for 2)
/home/kit/Documents/Code/pdoc/Rakefile:11
/home/kit/Documents/Code/pdoc/lib/pdoc/models/entity.rb:16:in `call'
/home/kit/Documents/Code/pdoc/lib/pdoc/models/entity.rb:16:in
`src_code_href'
(erb):18:in `include'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/page.rb:41:in
`include'
(erb):3:in `render'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/page.rb:19:in
`render'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/page.rb:31:in
`render_to_file'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/page.rb:31:in
`open'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/page.rb:31:in
`render_to_file'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
101:in `render_template'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
139:in `render_leaf'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
195:in `to_proc'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
116:in `each'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
116:in `render_children'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
77:in `render'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
71:in `chdir'
/home/kit/Documents/Code/pdoc/lib/pdoc/generators/html/website.rb:
71:in `render'
/home/kit/Documents/Code/pdoc/lib/pdoc/runner.rb:72:in `run'
./lib/pdoc.rb:24:in `run'
/home/kit/Documents/Code/pdoc/Rakefile:6
/usr/lib/ruby/1.8/rake.rb:636:in `call'
/usr/lib/ruby/1.8/rake.rb:636:in `execute'
/usr/lib/ruby/1.8/rake.rb:631:in `each'
/usr/lib/ruby/1.8/rake.rb:631:in `execute'
/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:607:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:604:in `each'
/usr/lib/ruby/1.8/rake.rb:604:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:583:in `invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in `each'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28

Andrew Dupont

unread,
Apr 18, 2011, 5:12:06 PM4/18/11
to pd...@googlegroups.com
Looks like you might be giving the :src_code_href proc too few arguments. Can you post the contents of your Rakefile?

Cheers,
Andrew

> --
> You received this message because you are subscribed to the Google Groups "PDoc" group.
> To post to this group, send email to pd...@googlegroups.com.
> To unsubscribe from this group, send email to pdoc+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pdoc?hl=en.
>

Reply all
Reply to author
Forward
0 new messages