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 637025 - Error enums are not paired with quarks
Error enums are not paired with quarks
Status: RESOLVED DUPLICATE of bug 634202
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-12-11 16:09 UTC by Giovanni Campagna
Modified: 2015-02-07 17:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
MainTransformer: fix a bug when pairing quarks with enumerations (1.24 KB, patch)
2010-12-11 16:10 UTC, Giovanni Campagna
reviewed Details | Review

Description Giovanni Campagna 2010-12-11 16:09:45 UTC
When pairing quarks with enums, maintrasformer.py searches for the quark's symbol in the mapping to type infos, but the symbol includes also a namespace, so no match can be found.
Comment 1 Giovanni Campagna 2010-12-11 16:10:08 UTC
Created attachment 176240 [details] [review]
MainTransformer: fix a bug when pairing quarks with enumerations

The enum c_symbol_prefix does not contain the c_symbol_prefix of
the namespace, while the function's symbol does. Fix by looking
for the function name.
Comment 2 Colin Walters 2010-12-21 15:02:44 UTC
Review of attachment 176240 [details] [review]:

Hm, but isn't this specific to g_io_error?  I'd expect the commit message to mention that.

Any chance of a test case too?
Comment 3 Giovanni Campagna 2010-12-21 15:13:34 UTC
Actually, it is the opposite, g_io_error was the only one working (because of the specific workaround).
I will add a test case soon.
Comment 4 Giovanni Campagna 2010-12-21 16:09:25 UTC
Weird, there is a test case in tests/scanner/foo, and it passes, but without the patch I can still reproduce the bug where I originally discovered it (introspection support for NetworkManager, bug 637032).

Could it be because of --symbol-prefix, that Foo does not use?
Comment 5 Colin Walters 2011-01-11 18:44:30 UTC

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