[erlang-questions] edoc: easy question

Robert Baruch autophile@REDACTED
Wed Feb 14 02:19:04 CET 2007


Not really having any luck with application, either

--Rob

ekmac:~ ek$ erl -noshell -run edoc_run application '[""]' '[{dir,  
"doc"}, {source_path, ["src"]}]'
edoc: edoc terminated abnormally: {function_clause,
                                 [{edoc,application,[[[]],[...]]},
                                  {edoc_run,run,1},
                                  {init,start_it,1},
                                  {init,start_em|...}]}.

ekmac:~ ek$ erl -noshell -run edoc_run application '[]' '[{dir,  
"doc"}, {source_path, ["src"]}]'
edoc: edoc terminated abnormally: {function_clause,
                                 [{edoc,application,[[],[...]]},
                                  {edoc_run,run,1},
                                  {init,start_it,1},
                                  {init,start_em|...}]}.

ekmac:~ ek$ erl -noshell -run edoc_run application '"src"' '[{dir,  
"doc"}]'
edoc: edoc terminated abnormally: {function_clause,
                                 [{edoc,application,["src",[...]]},
                                  {edoc_run,run,1},
                                  {init,start_it,1},
                                  {init,start_em|...}]}.


On Feb 13, 2007, at 4:00 AM, Richard Carlsson wrote:

> Robert Baruch wrote:
>> Thanks for that -- now at least it doesn't error out. Next problem:
>>  > erl -noshell -run edoc_run packages '[""]' '[{dir, "doc"},  
>> {source_path, ["src"]}, {subpackages, true}]'
>> edoc: warning: file './src/package/file2.erl' belongs to package  
>> 'package', not 'src.package'.
>> edoc: warning: file './src/file1.erl' belongs to package '', not  
>> 'src'.
>> Any ideas? It seems edoc isn't recognizing that src is the root...
>
> Apparently, the packages/1/2 functions add the current directory to  
> the
> search path (I've no memory of why this is), which together with the
> 'subpackages' option seems to cause it to think that the 'src'  
> directory
> is part of the package structure. I'll have to investigate this. Try
> using the 'application' function instead - it should automatically  
> give
> you the behaviour you're trying to achieve.
>
>     /Richard
>
>




More information about the erlang-questions mailing list