[erlang-questions] edoc: easy question

Richard Carlsson richardc@REDACTED
Mon Feb 12 22:22:00 CET 2007


Robert Baruch wrote:
> 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|...},
>                                   {...}|...]}.

When you specify the source_path option, the value must be a list
of paths, not just a single string. So, write ["src"] instead of "src"
and it should work.

    /Richard



More information about the erlang-questions mailing list