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 629004 - Unresolved element-type does not warn
Unresolved element-type does not warn
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-09-07 22:56 UTC by Owen Taylor
Modified: 2015-02-07 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a warning for unresolved types (3.99 KB, patch)
2010-09-15 02:18 UTC, Johan (not receiving bugmail) Dahlin
committed Details | Review

Description Owen Taylor 2010-09-07 22:56:04 UTC
* Return value: (element-type Actor) (transfer container):                                        

Produces without any warning an introspectable="0" output in the .gir file.
(Should be element-type Clutter.Actor)
Comment 1 Johan (not receiving bugmail) Dahlin 2010-09-15 02:18:36 UTC
Created attachment 170312 [details] [review]
Add a warning for unresolved types

Warn when using an annotation which will end up as
unresolved.
Comment 2 Colin Walters 2010-09-15 20:51:09 UTC
Review of attachment 170312 [details] [review]:

This looks generally OK to me.
Comment 3 Johan (not receiving bugmail) Dahlin 2010-09-15 20:59:23 UTC
Attachment 170312 [details] pushed as 4577bf1 - Add a warning for unresolved types
Comment 4 José Aliste 2010-09-18 01:49:00 UTC
After commit 4577bf1 I get the following crash in g-ir-scanner when compiling gtksourceview. 

  GISCAN GtkSource-3.0.gir
Traceback (most recent call last):
  • File "/opt/gnome2/bin/g-ir-scanner", line 45 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/scannermain.py", line 349 in scanner_main
    main.transform()
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 76 in transform
    self._namespace.walk(self._pass_read_annotations)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/ast.py", line 422 in walk
    node.walk(callback, [])
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/ast.py", line 498 in walk
    res = callback(self, chain)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 210 in _pass_read_annotations
    self._apply_annotations_function(node, chain)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 170 in _apply_annotations_function
    self._apply_annotations_callable(node, chain, block)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 620 in _apply_annotations_callable
    self._apply_annotations_params(node, node.parameters, block)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 594 in _apply_annotations_params
    self._apply_annotations_param(parent, param, tag)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 576 in _apply_annotations_param
    self._apply_annotations_param_ret_common(parent, param, tag)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 441 in _apply_annotations_param_ret_common
    node.type = self._resolve(param_type.one(), node.type)
  • File "/opt/gnome2/lib64/gobject-introspection/giscanner/maintransformer.py", line 291 in _resolve
    text = parent.name
AttributeError: 'Type' object has no attribute 'name'
make[4]: *** [GtkSource-3.0.gir] Error 1
Comment 5 Colin Walters 2010-10-05 20:24:42 UTC
(In reply to comment #4)
> After commit 4577bf1 I get the following crash in g-ir-scanner when compiling
> gtksourceview. 
> 
>   GISCAN GtkSource-3.0.gir
> Traceback (most recent call last):
> 

Hi José, I can't reproduce this on Fedora 14 beta x86_64 with g-i  4b94812bb and gtksource ff7db545b0c.  Is it still an issue?
Comment 6 José Aliste 2010-10-06 20:30:57 UTC
Well, I can't reproduce neither, so I am closing this
Comment 7 André Klapper 2015-02-07 16:50:52 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]