GNOME Bugzilla – Bug 628397
gir build error
Last modified: 2010-09-03 20:16:58 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
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.
*** Bug 628625 has been marked as a duplicate of this bug. ***
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.
Created attachment 169376 [details] [review] libanjuta-interfaces: add element-type annotations to all lists
(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 ?
The comment associated to a typedef are lost by the idl compiler, I will try to change it.
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)
Created attachment 169446 [details] [review] libanjuta: reformat comments in libanjuta.idl to make g-ir-scanner happy
I think, it's better to improve the idl compiler to have the necessary comments in the generated file.
(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
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 ?