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 562622 - Errordomains missing
Errordomains missing
Status: RESOLVED DUPLICATE of bug 602516
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 559704
 
 
Reported: 2008-11-28 21:22 UTC by Jürg Billeter
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jürg Billeter 2008-11-28 21:22:23 UTC
The generated .gir files seem to miss errordomains, they only appear as normal enums. Tested with GIO.
Comment 1 Johan (not receiving bugmail) Dahlin 2009-01-21 11:44:18 UTC
What information do you need from the error domains Jürg?
Comment 2 Jürg Billeter 2009-01-21 12:00:25 UTC
I don't need a lot of information, mainly the information that it is an errordomain instead of just an enum - I assume we use a different element name for that - and the information how to get the quark, similar to glib:get-type.

In the specific case of gio, we should also rename the type from IOErrorEnum to IOError. It's only called GIOErrorEnum in C due to a conflict with the deprecated enum GIOError, which shouldn't be an issue in gobject-introspection.
Comment 3 Johan (not receiving bugmail) Dahlin 2009-01-22 00:03:05 UTC
I fixed this:

2009-01-21  Johan Dahlin  <jdahlin@async.com.br>

        Bug 562622 – Errordomains missing

        * giscanner/girwriter.py:
        * giscanner/glibast.py:
        * giscanner/glibtransformer.py:
        * tests/scanner/Makefile.am:
        * tests/scanner/foo-1.0-expected.gir:
        * tests/scanner/foo-1.0-expected.tgir:
        * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
        * tests/scanner/foo.h:

Rename-To etc should probably be covered by another bug, closing this one.
Comment 4 Didier "Ptitjes" 2009-03-21 18:06:37 UTC
I would like we reopen that bug for the reason that what produces the giscanner and the foo-1.0-expected.gir test data are in contradiction with what expects girparser.c.

Reference information:

- the above commit:
http://git.gnome.org/cgit/gobject-introspection/commit/?id=f90b158f0563a23213678c8dabfbccc08aaa5fb5

- the corresponding girepository API:
http://git.gnome.org/cgit/gobject-introspection/tree/girepository/girepository.h#n376

- the parsing code for errordomains:
http://git.gnome.org/cgit/gobject-introspection/tree/girepository/girparser.c#n1419
Comment 5 Owen Taylor 2009-12-22 19:34:54 UTC
Duplicating on a similar bug with more useful discussion about what the API should look like

*** This bug has been marked as a duplicate of bug 602516 ***
Comment 6 André Klapper 2015-02-07 16:53:42 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]