-
Notifications
You must be signed in to change notification settings - Fork 50
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
Problem building documentation with overloaded functions #98
Comments
Oh my, the function overloads are back at it 😱 It looks like maybe the rules in breathe have changed, thank you for producing a thorough bug report!
Wanted to send you a response, but the function overloads were really hacky and frustrating. Long term, I want to PR to breathe to ask them if we can enable every directive to have a bypass for refid lookup. So that we can e.g., I'm not in a good place and don't know if or when that is going to change 😞 So for now pretty much all open source is on hold for me. |
Seems related: breathe-doc/breathe#606 I will try and test that PR quickly tonight after work, seems like a recent regression and I think my test cases may be helpful for them on this but have not run tests in ages... |
Note I have added tests to breathe-doc/breathe#606 and fixed a minor issue with initialization values in a PR to that PR jakobandersen/breathe#1 |
Oops, this repository still has this issue, reopening issue. |
@svenevs I'm confused about this bug. Is this is from upstream or a bug of both? Also, using Breathe from pull request breathe-doc/breathe#606 makes it work (with Exhale from |
breathe-doc/breathe#606 is merged, closing issue. |
I'm getting something similar still. In my case, the complaint is between |
Ok the rules probably changed again, using an earlier version of breathe may fix but I will have to look more closely. This fix is not without peril |
Do you know a version of breathe I can pin to and try? |
No :( probably 4.29 or 4.28 looking at the release dates for breathe on PyPI and that the PR 606 linked above fixed it. I can't test at this moment but if you find one that works please post back. Sorry that's not very helpful :/ |
I've tried with a couple of versions of [Edit]: This problem goes away with |
@aprotyas Can you post a complete example, preferably minimal, that fails for you? |
@mattip I've attached as small an example as I could. To reproduce, run: > doxygen Doxyfile
> sphinx-build . out You should get an error that reads:
In hindsight, given the example I could reproduce with, this is not an "overloaded functions" problem precisely. I suspect this is a problem with Lines 252 to 254 in 58c6c77
|
As discovered in svenevs/exhale#98, older versions of `breathe` do not throw unresolved function name warnings and/or choke on template parameter lists. Hence, temporarily pinning to 4.26.0. Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org>
closing with reference to #106, right now many overloads work, the ones that still fail are non-specialized template functions and sometimes global (not in a namespace) functions. this bug does resurface differently over time, just trying to consolidate the function overloads discussion |
When I use exhale to generate documentation for my library with overloaded function, it shows warnings like this:
To diagnose the problem, I disabled Exhale and opened one of the files with problems. It had this line:
I changed the line to the following but the warning still showed:
Then I changed to this and the warning disappeared:
It looks like Breathe is very sensitive to whitespace and parameter names.
Is there any workaround?
Sphinx version: 3.3.1
Breathe version: 4.24.1
Exhale version: 0.2.3
Note: Although this issue is similar to #32, it's not the same or duplicate of that issue.
The text was updated successfully, but these errors were encountered: