On Sun, 2008-08-03 at 17:00 -0700, macco wrote: > I have the same problem. If I start gedit from the command-line I get the > following error message > > Traceback (most recent call last): > File "/usr/local/lib/gedit-2/plugins/snippets/__init__.py", line 62, in > activate > data.run(window) > File "/usr/local/lib/gedit-2/plugins/snippets/WindowHelper.py", line 40, > in run > self.accel_group = Library().get_accel_group(None) > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 859, in > get_accel_group > self.ensure(language) > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 893, in > ensure > self.ensure_files() > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 911, in > ensure_files > self.add_user_library) > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 835, in > find_libraries > addcb(f) > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 815, in > add_user_library > return self.add_library(library) > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 775, in > add_library > library.ensure_language() > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 514, in > ensure_language > for element in self.parse_xml(256): > File "/usr/local/lib/gedit-2/plugins/snippets/Library.py", line 468, in > parse_xml > parser.feed(data) > File "/usr/local/lib/gedit-2/plugins/snippets/ElementTree.py", line 1242, > in feed > self._parser.Parse(data, 0) > xml.parsers.expat.ExpatError: syntax error: line 1, column 0 > > Das anyone know a solution? The line of the traceback implies there was no XML to read. Your installation is missing, or cannot find the snippets. This looks like an installation or environment issue Most distros install the snippets at /usr/share/gedit-2/plugins/snippets Do you have snippets at /usr/local/share/gedit-2/plugins/snippets/ Gedit also checks your local directory for snippets. You can copy the snippets to .gnome2/gedit/snippets/ to make visible and editable. > Nicu Rau wrote: > > > > I have tryied both Gedit 2.16 and 2.18 , and the snippets plug in doesn't > > work. On preferences dialog, I can't enable snippents plug in; it is > > disabled....Is there any solution to solve this? > > Thanks -- __C U R T I S C. H O V E Y_______ Guilty of stealing everything I am.
Attachment:
signature.asc
Description: This is a digitally signed message part