Code Monkey home page Code Monkey logo

Comments (9)

noname77 avatar noname77 commented on July 19, 2024 1

wow, thanks (and for the super quick response)!

btw, i also created an issue for breathe and added a ref here

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

Firstly, I haven't looked at this code in a while.

sphinx-csharp should detect the const as a keyword. The doxygen output seems fine. My hunch is that breathe is somehow adding the static and assuming there is only one keyword.

I should really add some tests for the doxygen/breathe integration, will have a look at this...

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

This issue is similar to #2, except that const is a vaild C# keyword.

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

I used breathe>=4.19.2 last time in https://github.com/rogerbarton/vr-modeling/blob/master/docs/requirements.txt. There may be issues when you use breathe=4.30.0

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

After some debugging I think the issue is in these lines:
https://github.com/michaeljones/breathe/blob/d8add71c4613f6073928ad221400241407c17eb3/breathe/renderer/sphinxrenderer.py#L1995-L2033

and the static is added because of:
https://github.com/michaeljones/breathe/blob/d8add71c4613f6073928ad221400241407c17eb3/breathe/renderer/sphinxrenderer.py#L2008-L2009

I will see if I can fix this

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

I think if you use git+https://github.com/rogerbarton/breathe.git@dev in your requirements.txt it should work for now.

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

Can you try using pip install git+https://github.com/rogerbarton/breathe.git@dev and then running it again. I think rogerbarton/breathe@fc0d085 should have fixed the issue.

from sphinx-csharp.

noname77 avatar noname77 commented on July 19, 2024

Perfect, thanks for the quick fix! Works like a charm now :)

The constants are still listed under static attributes, however I think this is fine since they are indeed implicitly static.

image

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

Awesome glad it works, I will now create a merge request for the breathe repo...

from sphinx-csharp.

Related Issues (12)

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.