-
-
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
"Error in type declaration" without any type specified. #1003
Comments
I am also experiencing this - although I was only able to repro it when I upgraded Doxygen to 1.12.0. I was previously on 1.9.2 and didn't get this issue. It seems to be caused by a namespace XML file (in my case
Removing the corresponding entry from
|
Can confirm this happens with breathe v4.35.0 as well as most recent master (62695c7) with following doxygen versions:
So the breakage appears due to something in doxygen appearing from maybe 1.9.7, but definitely with 1.9.8. I was able for the sake of repairing the output to replace the code here: https://github.com/breathe-doc/breathe/blob/main/breathe/renderer/sphinxrenderer.py#L715-L716 with if isinstance(n, addnodes.desc_name):
declarator[0] = addnodes.desc_name(display_obj_type, display_obj_type)
elif isinstance(n, addnodes.desc_sig_keyword):
declarator[0] = addnodes.desc_sig_keyword(display_obj_type, display_obj_type)
else:
raise AssertionError(f'invalid type: {type(n)}') and then it renders again. However this is not necessarily (or rather likely) the correct solution as I am not really knowledgeable about breathe and Sphinx interna. |
Thank you for the issue. We're currently working on getting this project funded and maintenance and development will continue when that is in place. Fortunately one organisation is in the process of providing some funding if it goes smoothly but we're always open to other sources to keep the project sustainable for as long as possible. |
I am getting this error which is not very specific about what is happening:
The log file is
I took a closer look at the assertion that raises the error
isinstance(n, addnodes.desc_sig_keyword)
, its arguments areAm I missing something?
The text was updated successfully, but these errors were encountered: