Skip to content
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

GIR warnings #366

Open
1 of 2 tasks
worldofpeace opened this issue Dec 17, 2019 · 2 comments
Open
1 of 2 tasks

GIR warnings #366

worldofpeace opened this issue Dec 17, 2019 · 2 comments

Comments

@worldofpeace
Copy link

worldofpeace commented Dec 17, 2019

Describe the bug

Building the latest released granite I see these warnings in the build output

../lib/Services/Application.vala:21.1-21.26: warning: Namespace Services does not have a GIR namespace and version annotation
namespace Granite.Services {
^^^^^^^^^^^^^^^^^^^^^^^^^^
../lib/GtkPatch/AboutDialog.vala:23.1-23.54: warning: Namespace GtkPatch does not have a GIR namespace and version annotation
public class Granite.GtkPatch.AboutDialog : Gtk.Dialog {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../lib/Drawing/BufferSurface.vala:25.1-25.25: warning: Namespace Drawing does not have a GIR namespace and version annotation
namespace Granite.Drawing {
^^^^^^^^^^^^^^^^^^^^^^^^^
../lib/Widgets/AboutDialog.vala:22.1-22.25: warning: Namespace Widgets does not have a GIR namespace and version annotation
namespace Granite.Widgets {

Platform Information

NixOS 20.30 (development).

Please check what applies:
-->

  • I'm using the latest version from git that I've manually compiled
  • I'm using the latest released stable version
@ricotz
Copy link
Collaborator

ricotz commented Dec 24, 2019

Preferably granite should not contain nested namespaces at all. Those are not supported by the GIR format and vala isnt fully capable to transform those. https://gitlab.gnome.org/GNOME/vala/issues/541

@raggesilver
Copy link

I'm currently not able to generate my project's gir file because of this.

Could not find GIR file 'GraniteServices-1.0.gir'; check XDG_DATA_DIRS or use --includedir

This file most likely doesn't exist and is just an issue related to nested namespaces, correct? Anything I can do about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants