Re: [Vala] vapigen problem with librest



On Wed, 2010-05-26 at 18:04 +0100, Ross Burton wrote:
Hi,

I'm trying to use vapigen to build Vala bindings of librest from the
gobject-introspection data.  However, I get an error:

There is a binding for librest distributed with vala--is there a reason
you're not using that? If something is missing or broken please let us
know so we can try to get it working.

If you're using a recent git checkout of vala, the bindings have been
renamed to rest-0.6 (to match a change in the pkg-config name upstream),
and Adrien Bustany just committed bindings for rest-extras-0.6 a few
hours ago.


$ 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>:

    <enumeration name="ProxyError"
                 c:type="RestProxyError"
                 glib:error-quark="rest_proxy_error_quark">
      <member name="cancelled"
              value="1"
              c:identifier="REST_PROXY_ERROR_CANCELLED"/>
... the next line is 1144 ...
      <member name="http_use_proxy"
              value="305"
              c:identifier="REST_PROXY_ERROR_HTTP_USE_PROXY"/>
....
    </enumeration>

(the full .gir is attached)

I can't see a recursive type there, but maybe I'm being blind -- it's
been a long day.  Any ideas?

(please CC, I'm not on the list)

Ross
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]