-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tag </programlisting> was inserted before </highlight> parsing python / cpp file to xml #8518
Comments
my os is ubuntu 20.04 |
…ght> parsing python file to xml Doxygen expects that decorators don't have a return in them, but the complicated decorator: ``` @basetest.unittest.skipIf( api_implementation.Type() != 'cpp' or api_implementation.Version() != 2, 'Errors are only available from the most recent C++ implementation.') ``` has some in them. This leads to the mentioned problem as well as that the line counting is incorrect (we see that the last mentioned lie number in the xml file is 2964 though the file has 2966 lines). By fixing this (and also the line counting in the python scanner) the problem looks to be handled.
I've just pushed a proposed patch, pull request #8519 |
issue #8518 tag </programlisting> was inserted before </highlight> parsing python file to xml
Code has been integrated in master on github (please don't close the issue as this will be done at the moment of an official release). |
there is a same error when parsing another .h file. wire_format_lite_inl.zip |
Normally it would be better to open a new issue as we see here that the input file giving a problem is a cpp related file and not python related. The result on the output is the same though. The offending parts are (as far as I quickly saw):
and around line 788
when, as a workaround but probably not feasible due to coding guidelines, removing the |
…ght> parsing cpp file to xml The possible `\n` was not taken into account when codifying the line(s).
For the second problem (cpp related), I've just pushed a proposed patch, pull request #8524 |
issue #8518 tag </programlisting> was inserted before </highlight> parsing cpp file to xml
Code for second problem has been integrated in master on github (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
Describe the bug
Describe what you see that (you think) is wrong.
When I parse a python file,reflection_test.py, the output file reflection__test_8py.xml is error. The tag was inserted before .
Expected behavior
Describe what you would have expected or think is correct.
The tag should be after .
Screenshots
If useful, add screenshots to help explain your problem.
To Reproduce
Attach a self contained example that allows us to reproduce the problem.
Such an example typically exist of some source code (can be dummy code) and a doxygen configuration file used (you can strip it using
doxygen -s -u
). After you verified the example demonstrates the problem, put it in a zip (or tarball) and attach it to the bug report. Try to avoid linking to external sources, since they might disappear in the future.reflection_test.zip
Version
Mention the version of doxygen used (output of
doxygen --version
) and the platform on which you run doxygen (e.g. Windows 10, 64 bit). If you run doxygen under Linux please also mention the name and version of the distribution used (output oflsb_release -a
) and mention if you compiled doxygen yourself or that you use a binary that comes with the distribution or from the doxygen website.1.9.1
Stack trace
If you encounter a crash and can build doxygen from sources yourself with debug info (
-DCMAKE_BUILD_TYPE=Debug
), a stack trace can be very helpful (especially if it is not possible to capture the problem in a small example that can be shared).Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: