-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Docs Generation: breathe/sphinx
Warning: doxygenfile: Cannot find file "lv_button.h
#6924
Comments
Is it resolved by #6928? |
No, not this particular warning. At my end, all sphinx warnings are handled but this one. |
I see, let's what happens with the GitHub docs build when your changes are merged. We will see if there are any error in the CI's logs. See e.g. here |
@kdschlosser Hi, Kevin! Are these normal warnings (see link from above)? @kisvegabor Hi, Gábor, is https://docs.lvgl.io/master/API/ currently reflecting the result of that build/deploy? |
That is everything that has not been documented..... Git-r-done!!! LOL |
@kdschlosser So, are these normal warnings? They aren't supposed to generate the API documentation locally? I thought sure that when I was initially working from your Am I right (that it was generating the API docs locally)? In which case I have to assume it something I caused here locally? Or am I wrong and I can I safely ignore them for now? |
Remember I had added it writing that output to a file instead of outputting it to screen. That was apart of that PR i killed due to there being way to many merge conflicts. Once all of the changes to the doxygen stuff was done I was going to create another PR to handle all of the ReST issues and another PR to add that check to fail the build if something has not been documented. |
@kisvegabor is the current on-line docs a result of the build you did above? Or is the test-build results in an alternative location? |
Yes, it's generated during the docs-build. |
So the fact that I am seeing API docstrings (e.g. https://docs.lvgl.io/master/API/lv_init.html) in the API pages means it is still working (being generated on Ubuntu), and only not working on my PC. Am I interpreting that correctly? |
SOLVED!!! The problem that triggered the above was that the code in
it only changes the default directory on R:, but does not change the CURRENT DEFAULT directory (which is reflected in the command prompt). There is one more command required to change CURRENT DEFAULT directory:
Note the new CURRENT DEFAULT directory is now reflected in the command prompt.
where
So the intended result of changing the CURRENT DEFAULT directory did not succeed (same as in the command prompts above). This caused Doxygen to be running on the wrong drive. Since the OUTPUT_DIRECTORY is configured as ".", the generated files were going to the wrong place. It either needed an additional command to change drives (
Or it needed this, which accomplishes the desired end result in a simpler way.
Note that I had to deal with 2 more work-arounds to prevent generated locally on Windows instead of the "Cannot find file" error from above. Gábor, would you like me to submit these fixes in a PR? Or submit it with the task I am working on? Kind regards, |
Great!
This approach looks way better to me. So yes, please send a PR 🙂 |
...in the case where TMPDIR environment variable pointed to a drive different than the LVGL project directory. (TMPDIR is used by Python `tempfile.mkdtemp()` used in `build.py`.) The result was on Windows Doxygen was running in the LVGL project's `./docs/` directory instead of the temporary directory where it was intended to run, causing Doxygen to generate XML files for the API pages in in the wrong place. The solution was to replace the attempted `cd` with a cross-platform compatible `cd` built into Python's `os` library by temporarily having the `build.py` script change directories to where Doxygen should run and change back again after running it. Additionally: 1. Handled 2 Python warnings where a regex string was using an illegal escape sequence by making it a "raw" string, since the escape backslash needs to be passed un-interpreted to the regex. 2. Replaced `build.py`s get_version() function with one that works on both Linux and Windows platforms. Credit: @kdschlosser. Resolves lvgl#6924.
Done! PR #6990 |
LVGL version
V9.3
What happened?
In the docs generation I'm currently getting a large number of warnings that look like this:
and simultaneously, the API text is not showing up in the generated documentation. I'm not sure if it is something about my local system since the https://docs.lvgl.io/master/API/widgets/button/lv_button.html page is obviously showing the Doxygen-extracted documentation, but on my local system, I am getting this instead:
I haven't changed anything in the doc-generating
.py
files, so I need guidance. Hopefully Kevin ( @kdschlosser ) knows more.I also note that there is a missing closing quotation mark in the error message and wonder if this might be relevant.
In PR #6916, Kevin stated:
My concern is: will the API content generate correctly in the actual build system when it is not doing so on my local system? There was a point a few months ago when the whole thing (under https://github.com/kdschlosser/lvgl
documentation-fixes
branch) was generating entirely without errors on my system if I am remembering correctly. Yet, the existing documentation is getting its API info. Is it safe to proceed or does this need to be repaired?This is the last type of Sphinx warning remaining. There are 332 of them.
Kind regards,
Vic
How to reproduce?
The text was updated successfully, but these errors were encountered: