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 628397 - gir build error
gir build error
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: libanjuta
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
: 628625 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-08-31 07:50 UTC by Götz Waschk
Modified: 2010-09-03 20:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libanjuta-interfaces: add element-type annotations to all lists (9.26 KB, patch)
2010-09-02 17:09 UTC, Abderrahim Kitouni
accepted-commit_now Details | Review
libanjuta: bgo#628397: gir build error (5.00 KB, patch)
2010-09-03 17:25 UTC, Abderrahim Kitouni
none Details | Review
libanjuta: reformat comments in libanjuta.idl to make g-ir-scanner happy (12.37 KB, patch)
2010-09-03 17:25 UTC, Abderrahim Kitouni
accepted-commit_now Details | Review

Description Götz Waschk 2010-08-31 07:50:48 UTC
This is with anjuta 2.31.91.0 on Mandriva cooker. I'm using gobject-introspection 0.9.3:

  GICOMP IAnjuta-1.0.gir
IAnjuta-1.0.gir: error: Type reference 'DebuggerGListCallback' not found
make[2]: *** [IAnjuta-1.0.typelib] Fehler 1
Comment 1 Johannes Schmid 2010-08-31 09:18:16 UTC
Please configure with --enable-introspection=no for now. I haven't been able to fix introspection build before the release yesterday and as gobject-introspection is kind of a moving target it might be that way for some time depending on the version you are using.
Comment 2 Abderrahim Kitouni 2010-09-02 16:36:27 UTC
*** Bug 628625 has been marked as a duplicate of this bug. ***
Comment 3 Abderrahim Kitouni 2010-09-02 17:08:16 UTC
This is caused by the fact that DebuggerGListCallback is marked introspectable="0" because it  doesn't have an element-type annotation. It is therefore removed, but the virtual  slots in IAnjutaDebugger*Iface aren't.
Yes, it's a bug in gobject-introspection, but it's revealed by an problem in our  code.

I've added element-type annotations to everything in libanjuta.idl, but it  seems that comments on typedefs aren't propagated by the idl compiler to the  generated C files.
Comment 4 Abderrahim Kitouni 2010-09-02 17:09:13 UTC
Created attachment 169376 [details] [review]
libanjuta-interfaces: add element-type annotations to all lists
Comment 5 Sébastien Granjoux 2010-09-02 20:24:02 UTC
(In reply to comment #3)
> I've added element-type annotations to everything in libanjuta.idl, but it 
> seems that comments on typedefs aren't propagated by the idl compiler to the 
> generated C files.

The comment from the .idl file are in the .c files, is it enough for the introspection or should we improve the idl compiler ?
Comment 6 Sébastien Granjoux 2010-09-02 21:03:12 UTC
The comment associated to a typedef are lost by the idl compiler, I will try to change it.
Comment 7 Abderrahim Kitouni 2010-09-03 17:25:12 UTC
Created attachment 169445 [details] [review]
libanjuta: bgo#628397: gir build error

The error is caused by the fact that doc comments of typedefs aren't
propagated by anjuta-idl-compiler.pl to the generated source files. We
create an additional file containing these doc comments (may be useful
for gtk-doc, I'm not sure)
Comment 8 Abderrahim Kitouni 2010-09-03 17:25:32 UTC
Created attachment 169446 [details] [review]
libanjuta: reformat comments in libanjuta.idl to make g-ir-scanner happy
Comment 9 Sébastien Granjoux 2010-09-03 17:55:38 UTC
I think, it's better to improve the idl compiler to have the necessary comments in the generated file.
Comment 10 Abderrahim Kitouni 2010-09-03 18:48:21 UTC
(In reply to comment #9)
> I think, it's better to improve the idl compiler to have the necessary 
comments in the generated file.

Of course. I just wanted to do a quick fix and don't knwo perl
Comment 11 Sébastien Granjoux 2010-09-03 20:16:58 UTC
Thank you very much for your patches, I have just committed them.

In addition, I have committed an improvement of anjuta-idl-compiler to keep comments associated with typedefs.

Gobject introspection should work fine in Anjuta now. But I'm just starting to see how it is working. So could you check that everything is fine ?