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 629959 - Error scanning GtkSourceView
Error scanning GtkSourceView
Status: RESOLVED FIXED
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-17 20:25 UTC by Jonh Wendell
Modified: 2015-02-07 16:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[maintransformer] Make warning more robust (1.13 KB, patch)
2010-09-20 03:10 UTC, Johan (not receiving bugmail) Dahlin
committed Details | Review
[message] Set file_positions to an empty list (838 bytes, patch)
2010-09-20 03:10 UTC, Johan (not receiving bugmail) Dahlin
committed Details | Review

Description Jonh Wendell 2010-09-17 20:25:39 UTC
GISCAN GtkSource-3.0.gir
Traceback (most recent call last):
  • File "/opt/gnome3/bin/g-ir-scanner", line 45 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/scannermain.py", line 349 in scanner_main
    main.transform()
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 76 in transform
    self._namespace.walk(self._pass_read_annotations)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/ast.py", line 422 in walk
    node.walk(callback, [])
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/ast.py", line 498 in walk
    res = callback(self, chain)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 210 in _pass_read_annotations
    self._apply_annotations_function(node, chain)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 170 in _apply_annotations_function
    self._apply_annotations_callable(node, chain, block)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 626 in _apply_annotations_callable
    self._apply_annotations_params(node, node.parameters, block)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 600 in _apply_annotations_params
    self._apply_annotations_param(parent, param, tag)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 582 in _apply_annotations_param
    self._apply_annotations_param_ret_common(parent, param, tag)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 447 in _apply_annotations_param_ret_common
    node.type = self._resolve(param_type.one(), node.type)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/maintransformer.py", line 296 in _resolve
    (text, result.ctype))
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/message.py", line 155 in warn_node
    log_node(WARNING, node, text, context=context)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/message.py", line 148 in log_node
    ml.log_node(log_type, node, text, context=context)
  • File "/opt/gnome3/lib/gobject-introspection/giscanner/message.py", line 131 in log_node
    elif len(file_positions) == 0 and hasattr(node, 'name'):

Comment 1 Ignacio Casal Quinteiro (nacho) 2010-09-18 19:36:45 UTC
Please have a look at this soon as it is blocking us in gedit.
Comment 2 Johan (not receiving bugmail) Dahlin 2010-09-20 03:10:05 UTC
The following fixes have been pushed:
2a70a47 [maintransformer] Make warning more robust
597ce27 [message] Set file_positions to an empty list
Comment 3 Johan (not receiving bugmail) Dahlin 2010-09-20 03:10:11 UTC
Created attachment 170622 [details] [review]
[maintransformer] Make warning more robust

Instead of assuming that a parent node is always passed in,
make sure to handle that case.

Fixes
Comment 4 Johan (not receiving bugmail) Dahlin 2010-09-20 03:10:15 UTC
Created attachment 170623 [details] [review]
[message] Set file_positions to an empty list

So we can always pass it into len() without breaking
Comment 5 André Klapper 2015-02-07 16:54:13 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]