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
\include{doc} ignores EXAMPLE_PATH #10449
Comments
This looks like to have the same / similar problem as investigated in #7688 (comment) |
Indeed, didn't see the comments when checking commits/PRs for bisecting :) I also noticed the second issue mentioned there (MD file starting with a header is not shown, except when it starts with a newline). Didn't include it here, because it also didn't work in the bisected versions. |
Regarding the @ doxygen
|
It doesn't quite fix the problem. I get the same warning you described:
When setting
Replacing However, the workaround of adding The warning is:
Here is another test case,
example.md (same as in original test case)
header.hpp ( /*!\brief A struct.
* \details
* \include{doc} doc/fragments/example.md
*/
struct S{}; Doxyfile (changed, diff to default) -INPUT =
+INPUT = ../include
-RECURSIVE = NO
+RECURSIVE = YES
-EXAMPLE_PATH =
+EXAMPLE_PATH = ../doc
In our projects, we use absolute paths. |
@eseiler I think I found the problem. Please verify if the referenced commit indeed fixes the problem. Do not close the issue, this will be done automatically when the next official release is made. |
@doxygen I still get warnings like:
Example: example.tar.gz Note: the second warning is also mentioned as note in the proposed pull request #10457 |
It works with Since we use |
I see that it works with
and the setting:
and the file |
Interesting to see here also the behavior of the |
@albert-github It does indeed not make much sense to have different results for |
Using the same procedure for |
Relaxed the requirement that, when EXAMPLE_PATH is not set, only an absolute path is resolved. If a relative path from where doxygen is run exists, this is now also accepted. Works for \include and \include{doc} equally.
@albert-github One more commit to relax the absolute path requirement. |
I get a warning during compilation:
|
@albert-github Somehow my compiler doesn't produce this warning. Should be fixed now. |
Indeed fixed, but the code like:
will probably be flagged by sonarcloud or coverity as "code smell" as the |
I kept the redundant |
I think that that is a valid reason. |
Describe the bug
Warning:
And the content of the file is not included.
EXAMPLE_PATH
doesn't seem to be checked for the included file, instead the base path of the file that calls\include
is used.With
header.hpp
:With
example.md
:And an otherwise default
Doxyfile
with:It also does not work if I put the
md
file intodoc
, remove thefragments
directory, and use the absolute root path asEXAMPLE_PATH
, and then try to includedoc/...
.Expected behavior
No warning, and content is included.
To Reproduce
example.tar.gz
Version
Persists on current master (c87ad3c)
Bisect:
Works: e73e0f9
Breaks: 7780d51
The text was updated successfully, but these errors were encountered: