-
Notifications
You must be signed in to change notification settings - Fork 132
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
DocC renderer crashing with no error message #472
Comments
This is a related issue to #351 - at least using Swift 5.6 doesn't display the issue and the docs are generated correctly. However I don't think it's the same as we build individual targets separately |
Hey Tim, I put this in slack, but thought it relevant to include here. The end-result of the diagnostics that led to my issue in #351 wasn't that I was building multiple targets, but that the symbol graphs that were included into the final Were you able to get a backtrace that showed the detail of the precondition failure in this case? |
To me this looks like the same issue. When I run
I get 73 symbol graphs for 36 different targets in the same folder. Even though only one target is specified (with Building documentation with symbol graph files for multiple modules to DocC isn't an officially supported configuration. Even if the build succeeded the resulting DocC Archive would contain the documentation for all 36 targets, adding ~32000 pages to the output from various dependencies. |
If you're looking to build documentation for a single target I would refer you to the Swift-DocC plugin. You can see an example of it being used in bin/update-gh-pages-documentation-site: If you can't use Swift 5.6 or otherwise can't use the Swift-DocC plugin you can filter out the dependencies symbol graphs files before the documentation build. We do that in one of our documentation preview script. If you're looking to build documentation for multiple targets, that's not something that Swift-DocC supports yet but it is something that we are working towards. See this Forums post. |
@d-ronnqvist the plugin is a last resort for us - we have around 60 packages and 100 or so targets to build documentation for and I don't want to be adding it as a dependency if we can avoid it. I managed to work around this by only copying the symbol files so we're good on that front. I'll leave the issue open as it shouldn't be crashing with no error message. I'll open a separate issue for multiple targets |
We already have #255 for this. |
@d-ronnqvist my particular error was DocC was overwriting other modules when running multiple converts but we can work around it |
Is it worth creating a separate issue for all of the |
Do you know which assertion this hit? I tried so search for |
Sorry this got buried in an avalanche of GH notifications! I can't remember which fatal error I hit so I'll close this for now as we've worked around it |
Description
When attempting to render the API docs for Vapor, the DocC renderer is crashing with no error message. This is all I get:
This happens with both
convert
andpreview
Checklist
main
branch of this package.Expected Behavior
Documentation is generated correctly or an error showing why it can't generate the docs
Actual behavior
Renderer crashes with no error message
Steps To Reproduce
Swift-DocC Version Information
5.7.2
Swift Compiler Version Information
The text was updated successfully, but these errors were encountered: