<div dir="ltr"><div style>There are many errors caused by macros.</div>You need to turn on preprocessing in EDoc. It will also process includes, so you need to pass include dirs too.<div style>See it in my project (edoc is run in parse_transform):</div>

<div style><a href="https://github.com/stolen/autohelp/blob/master/src/autohelp.erl#L46">https://github.com/stolen/autohelp/blob/master/src/autohelp.erl#L46</a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2013/6/17 sm <span dir="ltr"><<a href="mailto:post@gothensitz.com" target="_blank">post@gothensitz.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I've just ran edoc on a collection of erlang source files with the command: erl -noshell -run edoc_run application 'app' '"src"' '[{dir, "src"}]'<br>
<br>
The source files contain the erlang library.<br>
A few libraries gave this result:<br>
<br>
src/tls_record.erl, function is_acceptable_version/1: at line 477: multiple @spec tag.<br>
edoc: skipping source file 'src/tls_record.erl': {'EXIT',error}.<br>
src/orber_ifr_aliasdef.erl: at line 61: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_aliasdef.erl': {'EXIT',error}.<br>
src/orber_ifr_idltype.erl: at line 46: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_idltype.erl': {'EXIT',error}.<br>
src/mnesia_power_SUITE.erl: at line 37: syntax error before: mnesia<br>
edoc: skipping source file 'src/mnesia_power_SUITE.erl': {'EXIT',error}.<br>
src/ssl.erl, function start/0: at line 80: multiple @spec tag.<br>
edoc: skipping source file 'src/ssl.erl': {'EXIT',error}.<br>
src/distr_startup_SUITE.erl: at line 68: syntax error before: Nodes<br>
edoc: skipping source file 'src/distr_startup_SUITE.erl': {'EXIT',error}.<br>
src/orber_ifr_arraydef.erl: at line 53: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_arraydef.erl': {'EXIT',error}.<br>
src/diameter_capx.erl: at line 120: syntax error before: ';'<br>
edoc: skipping source file 'src/diameter_capx.erl': {'EXIT',error}.<br>
src/orber_ifr_interfacedef.<u></u>erl: at line 85: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_interfacedef.<u></u>erl': {'EXIT',error}.<br>
src/tls.erl, function start/0: at line 88: multiple @spec tag.<br>
edoc: skipping source file 'src/tls.erl': {'EXIT',error}.<br>
src/orber_ifr_operationdef.<u></u>erl: at line 72: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_operationdef.<u></u>erl': {'EXIT',error}.<br>
src/dialyzer_utils.erl, function pp_hook/3: at line 456: @spec arity does not match.<br>
edoc: skipping source file 'src/dialyzer_utils.erl': {'EXIT',error}.<br>
2543- fatal: {endtag_does_not_match,{was,<u></u>code,should_have_been,ocde}}<br>
src/ct_gen_conn.erl, function start/4: at line 61: error in XML parser: {fatal,{{endtag_does_not_<u></u>match, {was,code,should_have_been,<u></u>ocde}}, {file,file_name_unknown}, {line,86},{col,61}}}.<br>
edoc: skipping source file 'src/ct_gen_conn.erl': {'EXIT',error}.<br>
src/ct_framework.erl, function add_data_dir/2: at line 1331: @spec arity does not match.<br>
edoc: skipping source file 'src/ct_framework.erl': {'EXIT',error}.<br>
src/orber_ifr_constantdef.erl: at line 65: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_constantdef.<u></u>erl': {'EXIT',error}.<br>
src/orber_ifr_fixeddef.erl: at line 48: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_fixeddef.erl': {'EXIT',error}.<br>
src/public_key.erl, function pem_entry_decode/1: at line 86: @spec arity does not match.<br>
edoc: skipping source file 'src/public_key.erl': {'EXIT',error}.<br>
src/orber_ifr_exceptiondef.<u></u>erl: at line 64: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_exceptiondef.<u></u>erl': {'EXIT',error}.<br>
src/diameter_dbg.erl: at line 116: syntax error before: '.'<br>
edoc: skipping source file 'src/diameter_dbg.erl': {'EXIT',error}.<br>
src/orber_ifr_repository.erl: at line 65: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_repository.erl'<u></u>: {'EXIT',error}.<br>
src/zip.erl: at line 216: syntax error before: do_openzip_open<br>
edoc: skipping source file 'src/zip.erl': {'EXIT',error}.<br>
src/ct_run.erl, function run_test/1: at line 872: syntax error before: '--'<br>
edoc: skipping source file 'src/ct_run.erl': {'EXIT',error}.<br>
src/ct_util.erl, function start/0: at line 80: @spec arity does not match.<br>
edoc: skipping source file 'src/ct_util.erl': {'EXIT',error}.<br>
src/orber_ifr_enumdef.erl: at line 61: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_enumdef.erl': {'EXIT',error}.<br>
edoc: skipping source file 'src/calendar.erl': {'EXIT',{{badmatch,{atom,354,'<u></u>?SECONDS_PER_DAY'}},[{edoc_<u></u>specs,d2e,1,[{file,[101,100|..<u></u>.]},{line,339}]},{edoc_specs,<u></u>type,2,[{file,[101|...]},{<u></u>line,65}]},{edoc_extract,'-<u></u>get_tags/6-lc$^0/1-0-',2,[{<u></u>file,[...]},{line,...}]},{<u></u>edoc_extract,get_tags,6,[{<u></u>file,...},{...}]},{edoc_<u></u>extract,get_tags,6,[{...}|...]<u></u>},{edoc_extract,source1,5,[...<u></u>]},{edoc_doclet,source,9,...},<u></u>{lists,foldl,...}]}}.<br>


src/edoc_types.erl, function is_predefined/2: at line 32: file not found: edoc_types.hrl<br>
edoc: skipping source file 'src/edoc_types.erl': {'EXIT',error}.<br>
2543- fatal: {endtag_does_not_match,{was,p,<u></u>should_have_been,'N'}}<br>
src/ct_repeat.erl, in module header: at line 20: error in XML parser: {fatal,  {{endtag_does_not_match,{was,<u></u>p,should_have_been,'N'}}, {file,file_name_unknown},{<u></u>line,27},{col,33}}}.<br>
edoc: skipping source file 'src/ct_repeat.erl': {'EXIT',error}.<br>
src/ct_logs.erl, function init/2: at line 78: @spec arity does not match.<br>
edoc: skipping source file 'src/ct_logs.erl': {'EXIT',error}.<br>
src/corba_request.erl: at line 278: syntax error before: '?query_check'<br>
edoc: skipping source file 'src/corba_request.erl': {'EXIT',error}.<br>
src/orber_ifr_typecode.erl: at line 67: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_typecode.erl': {'EXIT',error}.<br>
src/orber_ifr_stringdef.erl: at line 48: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_stringdef.erl': {'EXIT',error}.<br>
src/orber_ifr_attributedef.<u></u>erl: at line 64: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_attributedef.<u></u>erl': {'EXIT',error}.<br>
src/orber_ifr_wstringdef.erl: at line 46: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_wstringdef.erl'<u></u>: {'EXIT',error}.<br>
src/crypto.erl, function hmac/3: at line 267: multiple @spec tag.<br>
src/crypto.erl, function hmac/3: at line 266: multiple @spec tag.<br>
src/crypto.erl, function hmac/3: at line 265: multiple @spec tag.<br>
src/crypto.erl, function hmac/3: at line 264: multiple @spec tag.<br>
src/crypto.erl, function hmac/3: at line 263: multiple @spec tag.<br>
edoc: skipping source file 'src/crypto.erl': {'EXIT',error}.<br>
src/edoc_doclet.erl, function run/2: at line 38: file not found: edoc_doclet.hrl<br>
edoc: skipping source file 'src/edoc_doclet.erl': {'EXIT',error}.<br>
src/ssl_manager.erl, function register_session/3: at line 156: multiple @spec tag.<br>
edoc: skipping source file 'src/ssl_manager.erl': {'EXIT',error}.<br>
src/megaco_ber_bin_drv_<u></u>encoder.erl: at line 277: head mismatch<br>
edoc: skipping source file 'src/megaco_ber_bin_drv_<u></u>encoder.erl': {'EXIT',error}.<br>
src/orber_ifr_sequencedef.erl: at line 53: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_sequencedef.<u></u>erl': {'EXIT',error}.<br>
src/ssl_pkix_db.erl, function cache_pem_file/2: at line 118: multiple @spec tag.<br>
edoc: skipping source file 'src/ssl_pkix_db.erl': {'EXIT',error}.<br>
src/orber_ifr_uniondef.erl: at line 67: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_uniondef.erl': {'EXIT',error}.<br>
src/orber_ifr_structdef.erl: at line 60: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_structdef.erl': {'EXIT',error}.<br>
src/orber_ifr_primitivedef.<u></u>erl: at line 46: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_primitivedef.<u></u>erl': {'EXIT',error}.<br>
src/orber_ifr_moduledef.erl: at line 64: syntax error before: '?tcheck'<br>
edoc: skipping source file 'src/orber_ifr_moduledef.erl': {'EXIT',error}.<br>
edoc: error in doclet 'edoc_doclet': {'EXIT',error}.<br>
edoc: edoc terminated abnormally: error.<br>
<br>
<br>
I've placed all the source file in one directory. I've also tested the some libray files in there orginal directory with the same results.<br>
<br>
How can I resolve this?<span class="HOEnZb"><font color="#888888"><br>
<br>
SM.<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">---------------------------------------------</font><div><font face="'courier new', monospace">Данил Загоскин | +7 906 064 20 47 | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div>


</div>