-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Exception with latest breathe version #683
Comments
It seems like we hit the TODO from #675, see https://github.com/michaeljones/breathe/pull/675/files#diff-a325f86dbe6ccb9b9da00b730c7880d89cce7f5668023958e444fcaf80c0f6e0R2070 @fabratu Is it possible for you to provide the traceback? Either the file generated by CICD, or by adding |
No problem. Added |
Damn, I tried to be careful when checking the XML structure. This assertion should be relaxed to a warning that something will look wrong.
|
I also encountered the problem during build of https://github.com/nanodbc/nanodbc/ documentation
sphinx-build -b html -d build/doctrees . build/html
Running Sphinx v3.5.4
making output directory... done
...
uilding [mo]: targets for 0 po files that are out of date
building [html]: targets for 5 source files that are out of date
updating environment: [new config] 5 added, 0 changed, 0 removed
reading sources... [ 20%] api
Exception occurred:
File "/usr/local/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py", line 2113, in visit_docparamlist
assert len(paramNameNodes) <= 1, paramNameNodes
AssertionError: [<breathe.parser.compound.docParamNameSub object at 0x7f8b11e86d60>, <breathe.parser.compound.docParamNameSub object at 0x7f8b11e86dc0>]
The full traceback has been saved in /tmp/sphinx-err-98xe1y6_.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:62: html] Error 2 |
Temporary fix should be removed as soon as this is fixed breathe-doc/breathe#683
If you want to execute it, you have to set env-variable CXX_STANDARD to at least 14 beforehand (that is at least how we run it). Alternatively you can set the variable directly in line 18 of
I am also glad to assist in providing the necessary data:
|
@mloskot, @fabratu, thanks! I found the source of the problem.
which becomes the XML <parameterlist kind="exception"><parameteritem>
<parameternamelist>
<parametername>index_range_error</parametername>
<parametername>database_error</parametername>
</parameternamelist>
<parameterdescription>
<para></para>
</parameterdescription>
</parameteritem></parameterlist> For networkit there is a very similar case for the constructor of
which becomes the XML <parameteritem>
<parameternamelist>
<parametername>first</parametername>
<parametername>last</parametername>
</parameternamelist>
<parameterdescription>
<para>A range that contains the initial group of nodes. </para></parameterdescription>
</parameteritem> For \param (and |
Hi,
we use breathe in our project (NetworKit) to generate the documentation website. As of today (breathe version v4.29.1) the process fails with an assertion-error.
Log from Github Actions: https://github.com/networkit/networkit/runs/2417500904#step:4:6624
We install breathe and all other components (link to environment) via pip3.
Link to sphinx conf.py.
Is there anything we have to change? Or should we pin the version to an older release?
Thanks in advance!
The text was updated successfully, but these errors were encountered: