-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
AttributeError: 'pending_xref' object has no attribute 'startswith' #299
Comments
Should be fixed by #288. |
Hi, I'm still seeing this error unfortunately (I'm using breathe 4.6.0)
Full traceback is here: https://gist.github.com/4a29a821f37c5df3f73492b20426c734 |
Could someone confirm this this is still an issue with the latest Sphinx (1.7.5) + Breathe (4.9.0) combination? Thanks. |
I checked locally with UCATLAS/xAODAnaHelpers and it looks ok. Note that we depend on ReadTheDocs for this -- so I don't think they've updated their version yet. |
Actually, I think I just fixed the actual bug in 4.9.1 and only now I realise. Issue #381 reported this happening with code that worked fine before #380 was merged. #382 (4.9.1) fixed this. #380 added improved rendering by rendering newlines as paragraph. Before only
TL;DR
Please comment if you still experience this issue with 4.9.1. |
Subject: Exception occurred: AttributeError: 'pending_xref' object has no attribute 'startswith'
Problem
<breathe.parser.compound.paramTypeSub instance at 0xfb1c908>
<pending_xref refdomain="std" refexplicit="True" refid="cppTangode/ddf/namespaceTango_1a86ed7ac243c13a7813f08c3b899af170" reftarget="cppTangode/ddf/namespaceTango_1a86ed7ac243c13a7813f08c3b899af170" reftype="ref">CmdArgType</pending_xref>
Exception occurred:
File "/usr/lib/python2.7/site-packages/breathe/renderer/sphinxrenderer.py", line 987, in visit_param
if first_node.startswith(keyword + ' '):
AttributeError: 'pending_xref' object has no attribute 'startswith'
The full traceback has been saved in /tmp/sphinx-err-Zr2EVu.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: *** [html] Error 1
Procedure to reproduce the problem
Error logs / results
Expected results
build html
Environment info
The text was updated successfully, but these errors were encountered: