-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support subprojects with macro definitions and usage #20
Comments
Unidoc is not able to process sources with macro annotations. E.g. when the class
is processed by Unidoc then the following error is reported:
|
I'm running into this while generating the documentation for akka-http, which now requires a macro to be expanded for the project to compile. Is there a fundamental reason why macro expansion cannot be taken into account while compiling the project from/for unidoc? |
The compiler requires macros to be precompiled, which is achieved typically by putting into separate subproject. Meanwhile Scsladoc I think requires full compilation of all sources. Does |
To be a bit more specific, the macro is defined in the
It is used in the So for this case it seems the fact that the macro is not expanded is the problem, rather than the solution. Does that make sense? I understand currently unidoc cannot deal with expanding macro's, but in my case "just not expanding macro's" does not seem feasible either - so I'm curious what it would entail to add support for expanding macro's work to unidoc. |
Adding |
Can you give an example of this? I'm having trouble in a project that uses circe/macroparadise. |
Ah, I should have been more specific: it works for me with macro usage, but not with macro definitions. I applied it to https://github.com/akka/akka-http/pull/2484/files in akka-http (the sbt side unfortunately is rather hacky). |
I had a similar issue: The
where This seems to trick (?) unidoc to depending on the macro project per-usual. Getting the usual two stage compile needed by macros. Leaves out the macro docs but eh. |
No description provided.
The text was updated successfully, but these errors were encountered: