Skip to content

Invalid GIR File Format in AstalApps-0.1.gir Causes Parsing Error #1651

@this-cat

Description

@this-cat
[options]
work_mode = "normal"
library = "AstalApps"
version = "0.1"
girs_directories = ["/usr/share/gir-1.0"]
single_version_file = true
generate_safety_asserts = true
deprecate_by_min_version = true

When using the AstalApps-0.1.gir file with Rust's GIR tool (gtk-rs/gir), an error occurs due to an invalid format in the element. The error message is:

Error: "GirXml: /usr/share/gir-1.0/AstalApps-0.1.gir at line 615:2: Attribute `type` on element <constant> is required."

The problematic section in /usr/share/gir-1.0/AstalApps-0.1.gir is:

<constant name="MAJOR_VERSION" c:identifier="ASTAL_APPS_MAJOR_VERSION" value="0">
    <type name="gint" c:type="gint" />
</constant>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions