GNOME Bugzilla – Bug 744950
When a namespace doesn't contain any public items, it should be hidden
Last modified: 2021-06-10 20:55:53 UTC
I have a namespace defined as the following: namespace Build { internal const string DATA_DIR = ""; internal const string PACKAGE_DATA_DIR = ""; internal const string GETTEXT_PACKAGE = "vala-stacktrace"; internal const string VERSION = "0.9"; internal const string RELEASE_NAME = ""; internal const string TITLE = "Vala stacktrace display"; internal const string BINARY_NAME = "vala-stacktrace"; // Values: Release or Debug internal const string BUILD = "Release"; internal const string SOVERSION = ""; internal const string LINKING = "shared"; internal bool is_debug () { return BUILD == "Debug" ; } internal string to_string () { var result = new StringBuilder () ; result.append (" - DATA_DIR : %s\n".printf(DATA_DIR)) ; result.append (" - PACKAGE_DATA_DIR : %s\n".printf(PACKAGE_DATA_DIR)) ; result.append (" - GETTEXT_PACKAGE : %s\n".printf(GETTEXT_PACKAGE)) ; result.append (" - TITLE : %s\n".printf(TITLE)) ; result.append (" - VERSION : %s\n".printf(VERSION)) ; result.append (" - BINARY_NAME : %s\n".printf(BINARY_NAME)) ; result.append (" - BUILD : %s\n".printf(BUILD)) ; result.append (" - RELEASE_NAME : %s\n".printf(RELEASE_NAME)) ; result.append (" - SOVERSION : %s\n".printf(SOVERSION)) ; result.append (" - LINKING : %s\n".printf(LINKING)) ; return result.str ; } } And while valadoc doesn't display any of those functions, it still displays an empty Build namespace.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of valadoc, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/valadoc/-/issues/ Thank you for your understanding and your help.