Il giorno sab, 11/04/2020 alle 13.08 +0200, Maurizio Quadrio ha
scritto:
> [489][mq.asus: /home/mq]$ gedit -s
> Traceback (most recent call last):
>   File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 87, in
> _on_load
>     self._adjust_editor()
>   File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 107, in
> _adjust_editor
>     location = self._text_buffer.get_location()
> AttributeError: 'Document' object has no attribute 'get_location'     

Thanks Maurizio.

I still couldn't try to reproduce, but this reminds of
https://gitlab.gnome.org/GNOME/gedit/issues/225

... which would suggest it is a problem of gedit, not gedit-latex.

Indeed, a gedit "Document.get_location()" should return a valid
Gio.File except if the file is not saved:
https://wiki.gnome.org/Apps/Gedit/PythonPluginHowTo#Gedit.Document
 - which does not seem to be your case.

Pietro

Reply via email to