[Vala] g-ir-compiler compatibility with valac generated gir files



Hi,

I'm using the latest g-ir-compiler g-object-introspection's git repositoty.  However, even with a gir file 
generated from a minimal vala class causes g-ir-compiler to crash.  Is there a known good version of 
g-ir-compiler that the gir files generated from valac will work with?

I'm also using the latest valac (which was updated recently to work with never g-ir-compiler versions).

The vala code for the test class is very basic:

public class TestClass : Object
{
}

As is the generated gir file:


<?xml version="1.0"?>
<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0"; 
xmlns:c="http://www.gtk.org/introspection/c/1.0"; xmlns:glib="http://www.gtk.org/introspection/glib/1.0";>
<include name="GObject" version="2.0"/>
<package name="g_ir_compiler_test"/>
<class name="TestClass" c:type="TestClass" glib:type-name="TestClass" glib:get-type="testclass_get_type" 
glib:type-struct="TestClassClass" parent="GObject.Object">
        <field name="parent_instance">
                <type name="GObject.Object" c:type="GObject"/>
        </field>
        <field name="priv">
                <type name="TestClassPrivate" c:type="TestClassPrivate*"/>
        </field>
        <constructor name="new" c:identifier="testclass_new">
                <return-value transfer-ownership="full">
                        <type name="TestClass" c:type="TestClass*"/>
                </return-value>
        </constructor>
</class>
<record name="TestClassClass" c:type="TestClassClass" glib:is-gtype-struct-for="TestClass">
        <field name="parent_class">
                <type name="GObject.ObjectClass" c:type="GObjectClass"/>
        </field>
</record>
<record name="TestClassPrivate" c:type="TestClassPrivate" disguised="1"/>
</repository>

Any ideas why this crashes, or if there is a specific version of g-ir-compiler that will work here?

-Nigel



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