-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Prevent AssertionError #67
Conversation
For ununderstood reasons, my sphinx tree fails to build with the following stacktrace. This patch prevent this. I do not really understand what happened here so any comment is welcomed : ) Please let me know if I can add information. ```Not yet converged, rendering again... 100% [========================================] ETA 00:00 (00:53) Exception occurred: File "/home/goudale/.virtualenvs/diplodocus3/lib/python3.5/site-packages/rinoh/document.py", line 458, in create_outlines assert section.level == current_level + 1 AssertionError The full traceback has been saved in /tmp/sphinx-err-tyt5znkg.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks! make: *** [Makefile:149: rinoh] Error 1 ```
4 similar comments
Thanks for the bug report and suggested fix! The Could you supply me with the Sphinx project that causes the crash? Or better yet, a minimal example that triggers the problem? I'd like to find the root cause of the problem. BTW Please note that you need to accept the CLA before I can accept pull requests. |
Thanks for the update.
Indeed, I have documents with multiple autogenerated-cross-inclusions which probably fall under this case. IMHO a warning should be raised but should not make the build fails. I'll try to send you a minimal example in the next few days. |
@calve Have you had any time to construct a minimal example yet? If possible, I'd like to include a fix in the next release. If you can provide me with the full Sphinx project sources, that is fine too. |
@brechtm I just want to let you know that I aknowledge your request. I'm having some troubles to set up a minimal example reproducing the bug. |
Thanks for the update! I understand this is not a trivial problem (and may reveal a Sphinx bug). I'll take your suggestion and issue a warning instead of crashing for the next release. The root cause can be solved at a later point. |
For ununderstood reasons, my sphinx tree fails to build with the following stacktrace. This patch prevent this. I do not really understand what happened here so any comment is welcomed : )
Please let me know if I can add information.