FS#26227 - dconf-editor error about schemas

Attached to Project: Arch Linux
Opened by gymka (gymka) - Monday, 03 October 2011, 14:07 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 05 October 2011, 16:36 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
on dconf-editor start got error, well error says what is wrong. it don't likes closed but not opened description tags in xml files.
solution:
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml
must have "<description>" before each "</description>".

should be:
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/org/gnome/antler/" id="org.gnome.antler">
<key type="s" name="keyboard-type">
<default>'touch'</default>
<summary>The keyboard geometry Caribou should use</summary>
<description>The keyboard geometry determines the shape and complexity of the keyboard, it could range from a 'natural' look and feel good for composing simple text, to a fullscale keyboard.</description>
</key>
<key type="b" name="use-system">
<default>false</default>
<summary>Use System Theme</summary>
<description> <description/>
</key>
<key type="d" name="min-alpha">
<default>0.20000000000000001</default>
<summary>Minimal opacity of keyboard</summary>
<description> <description/>
</key>
<key type="d" name="max-alpha">
<default>1.0</default>
<summary>Maximal opacity of keyboard</summary>
<description> <description/>
</key>
<key type="i" name="max-distance">
<default>100</default>
<summary>Maximum distance when keyboard is hidden</summary>
<description> <description/>
</key>
</schema>
</schemalist>

by default:
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/org/gnome/antler/" id="org.gnome.antler">
<key type="s" name="keyboard-type">
<default>'touch'</default>
<summary>The keyboard geometry Caribou should use</summary>
<description>The keyboard geometry determines the shape and complexity of the keyboard, it could range from a 'natural' look and feel good for composing simple text, to a fullscale keyboard.</description>
</key>
<key type="b" name="use-system">
<default>false</default>
<summary>Use System Theme</summary>
<description/>
</key>
<key type="d" name="min-alpha">
<default>0.20000000000000001</default>
<summary>Minimal opacity of keyboard</summary>
<description/>
</key>
<key type="d" name="max-alpha">
<default>1.0</default>
<summary>Maximal opacity of keyboard</summary>
<description/>
</key>
<key type="i" name="max-distance">
<default>100</default>
<summary>Maximum distance when keyboard is hidden</summary>
<description/>
</key>
</schema>
</schemalist>


Steps to reproduce:
launch dconf-editor
This task depends upon

Closed by  Ionut Biru (wonder)
Wednesday, 05 October 2011, 16:36 GMT
Reason for closing:  Works for me
Comment by gymka (gymka) - Monday, 03 October 2011, 14:09 GMT
if these xml files with errors you can't launch dconf-editor if they without errors you can't install/reinstall dconf or atleast it complains about these files:
usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml: error in 12 symbol 35: element <description> can't be in <description>. ignoring whole file
usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml: error in 12 symbol 35: element <description> can't be in <description>. ignoring whole file
(it's translation from lithuanian, not actual message)
Comment by Ionut Biru (wonder) - Monday, 03 October 2011, 14:13 GMT
report upstream to gnome bugzilla, caribou product
Comment by Ionut Biru (wonder) - Monday, 03 October 2011, 14:14 GMT
also, for better visibility provide a patch
Comment by gymka (gymka) - Monday, 03 October 2011, 14:45 GMT
reported:)
Comment by Ionut Biru (wonder) - Monday, 03 October 2011, 14:45 GMT
paste the link
Comment by gymka (gymka) - Monday, 03 October 2011, 14:52 GMT Comment by Balló György (City-busz) - Monday, 03 October 2011, 16:03 GMT
I can't reproduce this problem. What versions of dconf and caribou do you use?
Comment by gymka (gymka) - Monday, 03 October 2011, 16:08 GMT
latest stable
caribou-0.4.0-2
dconf-0.10.0-1

now reinstalled caribou and problem reappears...
deleted /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml installed caribou and it created bad /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml
Comment by gymka (gymka) - Monday, 03 October 2011, 16:26 GMT
as i understood this problem creates dconf installer script command "/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas"
Comment by Jan de Groot (JGC) - Monday, 03 October 2011, 17:36 GMT
<description/> is just a short-tag just like you have <br /> in XHTML. There's nothing wrong with the schema files, there's something wrong with a library or application trying to parse the schemas. Using <description><description /> will make the XML invalid. The error "<description> can't be in <description>" message is triggered by your invalid fix.
Comment by gymka (gymka) - Tuesday, 04 October 2011, 04:56 GMT
1. in other schemas between <description> and </description> there is a description. in other schemas i didn't find <description/> without <description> in front of it...
2. if i remove unnecessary(that one which don't have description and <description> tag before it) <description/> everything works, i can install dconf without any error.
3. my fix is bad, i can launch dconf-editor but it does not show antler and caribou configuration lines, but if i remove unnecessary tags it shows these configuration lines

Loading...