[erlang-bugs] Edoc crash when using macro with function

Adam Lindberg adam@REDACTED
Wed Oct 14 14:34:13 CEST 2009


Thanks, didn't make that connection with the documentation at all.

Follow up question: Is it possible to make edoc just skip those files? Right now it says that is is skipping them, but exits with an error anyway. I'd like it to generate the documentation for the modules that do work. Is that possible?

Cheers,
Adam

----- "Richard Carlsson" <carlsson.richard@REDACTED> wrote:

> Adam Lindberg wrote:
> > Running edoc:file/1 on test.erl with this content will result in a
> crash in edoc:
> > 
> > -module(test).
> > 
> > -export([f/0]).
> > 
> > -define(FUNC, f() -> ok).
> > 
> > ?FUNC.
> > 
> > 
> > Seems edoc in R13B02 can't handle the macro on line 7.
> 
> That's not a bug, it's a feature. :-)
> 
> If you want to run edoc on files that contain too weird macros,
> you need to give it the 'preprocess' flag, and possibly specify
> include paths as well; see the docs for eunit.erl for details.
> 
>     /Richard


More information about the erlang-bugs mailing list