GNOME Bugzilla – Bug 637025
Error enums are not paired with quarks
Last modified: 2015-02-07 17:00:40 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.
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.
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?
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.
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?
*** This bug has been marked as a duplicate of bug 634202 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]