[erlang-questions] edoc: easy question

Robert Baruch autophile@REDACTED
Mon Feb 12 21:23:04 CET 2007


Hi all,

Hopefully this should be an easy question for someone to answer! I  
have a file structure as follows in my directory:

src/file1.erl
src/package/file2.erl

where file1.erl has -module(file1) and file2.erl has -module 
(package.file2).

To generate all documentation, I've been trying to run edoc as:

 > erl -noshell -run edoc_run packages '[""]' '[{dir, "doc"},  
{source_path, "src"}]'
edoc: edoc terminated abnormally: {function_clause,
                                 [{filename,join,[115,[]]},
                                  {edoc_lib,find_sources_1,5},
                                  {edoc_lib,find_sources,5},
                                  {edoc,'-sources/3-fun-0-'|...},
                                  {lists|...},
                                  {...}|...]}.

 > erl -noshell -run edoc_run packages '[]' '[{dir, "doc"},  
{source_path, "src"}]'
edoc: edoc terminated abnormally: {function_clause,
                                 [{filename,join,[115,"src"]},
                                  {edoc_lib,find_file,3},
                                  {edoc,'-package_files/2-fun-0-',4},
                                  {lists,foldl|...},
                                  {edoc|...},
                                  {...}|...]}.

So... how do I specify that all documentation should be generated?

Thanks!

--Rob




More information about the erlang-questions mailing list