I think this bug has a workaround. I'm not sure this will work on 12.04,
for I'm still using 11.10 and it worked there. The idea is to copy
/usr/share/gedit/plugins/latex/tools.xml over
$HOME/.config/gedit/latex/tools.xml using root user priviledges. This
will prevent the local file to be overwritten, because everytime gedit
is opened the local tools.xml gets corrupted. This also implies that you
cannot edit this file as a normal user through the plugin "Preferences"
dialog. An alternative method would be to copy the file as superuser,
change ownership to a normal user, modify the tools through the
Preferences dialog, and then change the ownership back to root. I didn't
have the time to have a look at the code to find out the reasons for
this silly behavior (i.e. why most of the text in the local tools.xml
gets chopped off), so someone is strongly encouraged to do so and come
up with a fix for this.

Cheers.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit-plugins in Ubuntu.
https://bugs.launchpad.net/bugs/996076

Title:
  gedit latex plugin does not work

Status in “gedit-plugins” package in Ubuntu:
  Confirmed

Bug description:
  The latex plugin for gedit just does not wok. I am using ubuntu 12.04,
  gedit 3.4.1-0ubuntu1 and gedit-latex-plugin 3.4.0-1

  this is the output terminal output when I open a .tex file with gedit

  Traceback (most recent call last):
    File "/usr/lib/gedit/plugins/latex/windowactivatable.py", line 79, in 
do_activate
      self._tool_preferences = ToolPreferences()
    File "/usr/lib/gedit/plugins/latex/util.py", line 40, in getinstance
      instances[cls] = cls()
    File "/usr/lib/gedit/plugins/latex/preferences/tools.py", line 72, in 
__init__
      self.__tools = ElementTree.parse(filename).getroot()
    File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1183, in parse
      tree.parse(source, parser)
    File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
      self._root = parser.close()
    File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1655, in close
      self._raiseerror(v)
    File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in 
_raiseerror
      raise err
  xml.etree.ElementTree.ParseError: unclosed token: line 6, column 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/996076/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to