GNOME Bugzilla – Bug 624772
vapigen needs to handle GIR's switch from attribute to child tag doc strings
Last modified: 2010-07-27 15:50:22 UTC
This recent gobject-introspection commit: http://git.gnome.org/browse/gobject-introspection/commit/?id=017727630d09a854b1c1a4767066fb675b139de9 Changes the format of element docs from: <foo doc='bar'>...</foo> to <foo><doc>bar</doc>...</foo> Vapigen doesn't cope well with unknown tags, so this pretty much breaks vapigen as a GIR parser. Eg: TelepathyGLib-0.12.gir:20.7-20.38: error: unknown child element `doc' in `class' TelepathyGLib-0.12.gir:20.7-20.38: error: expected end element of `class' TelepathyGLib-0.12.gir:20.39-20.552: error: expected end element of `namespace' TelepathyGLib-0.12.gir:20.553-20.558: error: expected end element of `repository' Generation failed: 4 error(s), 0 warning(s)
It may be worthwhile to also make unknown elements issue warnings instead of errors, to avoid simple changes like this causing fatal errors.
Created attachment 166284 [details] [review] Completely ignore <doc> tags in GIR files
Created attachment 166285 [details] [review] Add mapping from GIR's gsize to Vala's size_t
commit f00fcf2e72c251f44398bbe5e53db0a85ee82036 Author: Philip Withnall <philip.withnall@collabora.co.uk> Date: Wed Jul 21 15:01:00 2010 +0100 girparser: Add mapping from GIR's gsize to Vala's size_t commit 7503681642ddf29f67401e3bd396264711513489 Author: Philip Withnall <philip.withnall@collabora.co.uk> Date: Wed Jul 21 14:51:13 2010 +0100 girparser: Completely ignore <doc> tags
*** Bug 619703 has been marked as a duplicate of this bug. ***