GNOME Bugzilla – Bug 660793
dconf-editor errors because of empty <description/> tags in caribou gschema file
Last modified: 2015-02-22 12:27:21 UTC
if i try to launch dconf-editor i get error: ** (dconf-editor:14962): DEBUG: dconf-schema.vala:378: Loading schema: /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:13: parser error : Opening and ending tag mismatch: description line 12 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:18: parser error : Opening and ending tag mismatch: description line 17 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:23: parser error : Opening and ending tag mismatch: description line 22 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:28: parser error : Opening and ending tag mismatch: description line 27 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:29: parser error : Opening and ending tag mismatch: key line 24 and schema </schema> ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:30: parser error : Opening and ending tag mismatch: key line 19 and schemalist </schemalist> ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag key line 14 ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag key line 9 ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag schema line 3 ^ /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag schemalist line 2 ** (dconf-editor:14962): DEBUG: dconf-schema.vala:378: Loading schema: /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:13: parser error : Opening and ending tag mismatch: description line 12 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:18: parser error : Opening and ending tag mismatch: description line 17 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:23: parser error : Opening and ending tag mismatch: description line 22 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:28: parser error : Opening and ending tag mismatch: description line 27 and key </key> ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:29: parser error : Opening and ending tag mismatch: key line 24 and schema </schema> ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:30: parser error : Opening and ending tag mismatch: key line 19 and schemalist </schemalist> ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag key line 14 ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag key line 9 ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag schema line 3 ^ /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag schemalist line 2 ============================================================================= solution: before each <description/> there should be <description>, patch attached.(i wrote only for /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml, but same problem and same fix and for /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml)
Created attachment 198103 [details] [review] fix for xml file
maybe it's wrong solution, but after that dconf-editor starts and works, atleast for now i haven't noticed something wrong:)
well that fix is bad, better is to remove unnecessary(that one which don't have description and <description> tag before it) <description/> tags.
I wonder if <description /> is at least recognized?
Thanks for the report. First off, this should be a dconf bug. The XML is valid. Second, if you want to provide a workaround you need to modify the script that generates caribou's schema files.
gymka: What dconf version is this about? (In reply to comment #5) > First off, this should be a dconf bug. ==> Move it to dconf, please.
dconf-0.10.0, but i tried to downgrade to dconf-0.8.0 and to dconf-0.7.5 and it's same... bug appeared after gnome 3.2 install, but maybe it's only coincidence. schemas generates script "/usr/bin/glib-compile-schemas" i think it's fault of that script, but it's binary so i can't see that it does.
xml allows empty elements to be written as either <bla></bla> or <bla/>. So, as far as the markup is concerned, the schemas you mention are alright. glib-compile-schemas also has not issue with empty descriptions. This leaves just dconf-editor as not properly dealing with valid content.
curiously, I don't see the same error with dconf 0.10 here.
i reinstalled my os(moved to x86_64 version) so i'm too don't have that bug anymore:) but de facto i had that bug, and not only i. i saw same problem in gentoo bugreport site, but there was older version.
[moving dconf>editor tickets to dconf-editor product. See bug 744791]