After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546138 - don't write empty undeclared/unused/undocumented files
don't write empty undeclared/unused/undocumented files
Status: RESOLVED OBSOLETE
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-03 21:01 UTC by Allison Karlitskaya (desrt)
Modified: 2018-05-22 13:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2008-08-03 21:01:32 UTC
it would be nice if gtk-doc didn't write out zero byte files for -undeclared/-unused/-undocumented.txt.

this allows you to not have these files in your .gitignore.  this means that git-status will alert you when you have undeclared/unused/undocumented symbols.  that's quite useful, i think. :)

it might also be cool to emit (or not emit) a -warnings.txt file if any WARNING: lines showed up.  then git-status could tell you about that too.

note: another way of doing this would be to check the zero-byte files into your version control and then you'd see if they changed from being zero bytes.  this is a little bit dirty, though (to have zero-byte, machine-generated files in version control).  also note: this wouldn't work now anyway because of the statistics at the top of -undocumented.txt.
Comment 1 Yeti 2009-01-09 09:58:34 UTC
Doing this unconditionally would break gtkdoc-check that, when enabled, prevents you from doing `make dist' when documentation coverage is not 100%.  Allowing the check to simply pass when the checked files are not present would not work because the files may be missing for many reasons.  So this unfortunately requires adding another option...
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2009-01-09 15:07:44 UTC
gtkdoc-check should be able to also look for "xml/*.(sg|x)ml" and "html/index.html" and those are not there report that generating the documentation has failed. If they are then it could look into the *.txt files.

Its a bit difficult with the -undocumented.txt as this has the completeness summary. I am not saying that this is good, but we can't really break it.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-17 15:35:11 UTC
I think gtk-check could look for the *.stamp files to figure if the docs have been built. I'll give this a try.

Maybe we can move the status summary from -undocumented.txt into a separate
-status.txt. gtkdoc-check could be updated to check for the new one at the same time.

Not sure if anyone else relies on the summary in -undocumented.txt.

Opinions?
Comment 4 Yeti 2014-02-17 16:13:59 UTC
(In reply to comment #3)
> Not sure if anyone else relies on the summary in -undocumented.txt.

I certainly do.  It's the easiest method obtain an overview of the documentation status for inclusion in build reports, etc.

In general, the entire motivation for this change seems pretty dubious to me.  You have to put the files to .gitignore, what's the problem with that?  That's how you handle generated files.  And alerting you to undocumented symbols -- why on earth it should be git's job?

Furthermore, moving the status summary elsewhere will still break things exactly the same way -- unless there is a *LONG* period during foo-undocumented.txt and foo-status.txt coexist.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-17 17:44:42 UTC
We can support both ways for a few years. I never liked that the status in -undocumented.txt. But I agree that the git support is not the way to go. If we want to give developers a way to ensure docs are always good, it'd be better to have something alike to -Werror.

It is just so, that these kind of enhancement request make zero sense to stay open, if we can't agree how to go forward :/
Comment 6 GNOME Infrastructure Team 2018-05-22 13:02:15 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk-doc/issues/8.