Code Monkey home page Code Monkey logo

Comments (8)

joshknox avatar joshknox commented on June 1, 2024

Note same error with Sphinx 1.0.4 as well.

from breathe.

joshknox avatar joshknox commented on June 1, 2024

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.

joshknox avatar joshknox commented on June 1, 2024

Err, oops. I closed it.

from breathe.

michaeljones avatar michaeljones commented on June 1, 2024

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.

joshknox avatar joshknox commented on June 1, 2024

Hey Michael,

The fix I made works for me for now.

Good luck on your move across the world!

Josh

from breathe.

bjdixon311 avatar bjdixon311 commented on June 1, 2024

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.

michaeljones avatar michaeljones commented on June 1, 2024

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.

michaeljones avatar michaeljones commented on June 1, 2024

Assuming the fix is enough. Will re-open if there are further issues.

from breathe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.