Hi,
                     في ر، 26-05-2010 عند 18:04 +0100 ، كتب Ross Burton:
> Hi,
> 
> I'm trying to use vapigen to build Vala bindings of librest from the
> gobject-introspection data.  However, I get an error:
> 
> $ vapigen rest/Rest-0.6.gir  --library=Rest --pkg=gio-unix-2.0
> Rest-0.6.gir:1144.7-1144.14: error: Recursive value types are not allowed
> Generation failed: 1 error(s), 0 warning(s)
> 
> Line 1144 is in the middle of an <enumeration>:
> [...]
> I can't see a recursive type there, but maybe I'm being blind -- it's
> been a long day.  Any ideas?
The reporting of lines in gir is, at best, very approximate (look at the
previous or next element of where it reports). The problem here is in
XmlNode :
1226    <record name="XmlNode"
...
1247      <field name="next" writable="1">
1248        <type name="XmlNode" c:type="RestXmlNode*"/>
1249      </field>

And here is the recursive type :-)
You could try to mark this field as allow-none (I'm not if it's possible
to do it with g-ir-scanner, you may need to modify the gir manually).

HTH,
Abderrahim

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to