Comments (8)
Note same error with Sphinx 1.0.4 as well.
from breathe.
Without really knowing what I'm doing ;), I added a 'templateparam' entry to the lookup dict on line 272 of compound.py:
class DocParamListTypeSubRenderer(Renderer): lookup = { "param" : "Parameters", "exception" : "Exceptions", "templateparam" : "Templates" }
This got me by the initial error and it chugged along for awhile, then died with:
Exception occurred: File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) ExpatError: not well-formed (invalid token): line 211, column 82
I suspect this is a problem with my XML sources and nothing to do with breathe.
I'll leave it to you guys to close this if my fix is appropriate.
from breathe.
Err, oops. I closed it.
from breathe.
Hi,
Thank you for reporting it and for all the effort you've put into investigating it. I seem to spend my life making excuses on these tickets but I'm currently in the process of moving from UK to New Zealand, so I can't quite do this justice at the moment. I'm hoping that in a week or so I will have a proper go at it. Less if you feel this is a matter of urgency for you.
I love to hear of breathe being used and I'm sorry when it isn't as smooth as possible! Hopefully I'll will give it some much needed care and attention soon.
Michael
from breathe.
Hey Michael,
The fix I made works for me for now.
Good luck on your move across the world!
Josh
from breathe.
I'm getting an error much like this, but with "retval". In my local copy I've worked around it by replacing the line:
name = self.lookup[self.data_object.kind]
with:
name = self.lookup.get(self.data_object.kind, None)
if not name:
print "Warning: No name found for " + self.data_object.kind
I end up with an output header called "None" in the places where this happens, but at least it allows me to generate all the docs without halting due to an exception.
from breathe.
Thanks for reporting and the research into it. I'm embarrassed to say I didn't roll Josh's initial fix into the codebase. I simply forgot.
From the compound.xsd file it seems like the dict in question should need:
lookup = {
"param" : "Parameters",
"exception" : "Exceptions",
"templateparam" : "Templates",
"retval" : "Return Value",
}
So I'll commit that and hopefully we'll fine be from here on out!
Cheers,
Michael
from breathe.
Assuming the fix is enough. Will re-open if there are further issues.
from breathe.
Related Issues (20)
- inline constexpr friends inject extra keywords HOT 3
- inline doesn't need to be documented HOT 4
- Add a way to suppress initialisers if there isn't already one HOT 2
- Entities in groups can't be cross-referenced HOT 1
- how to parse preprocessors? HOT 2
- doxygenfunction: Cannot find function HOT 3
- `virtual` specifier should not be present if `override` or `final` are
- Merge overloads when \overload is the only comment HOT 1
- Include directives not appearing in classes unless importing whole namespace into docs
- Simpler (?) solution for handling leading slashes
- あ
- `undefined label` due to Doxygen automatic link generation
- Add a way to remove the "subclassed by" note
- Unable to Build Docs on Python 3.12 HOT 2
- Documentation fails to build with Doxygen 1.9.7 HOT 3
- .. doxygenfunction fails to recognize function with restrict keyword in parameters HOT 1
- Support for brace initialized variable HOT 1
- no-link option not working
- Sphinx 7.2 support HOT 2
- AttributeError: 'PosixPath' object has no attribute 'rstrip' in breathe/project.py HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breathe.