Bug#998462: Plugin fails to load

2021-11-04 Thread Pietro Battiston
Hi Crysn,

thanks for your report. The bug is not new, but there must have been
some confusion around it.

The error was already signaled as #955812 , I produced a simple
upstream fix at

https://gitlab.gnome.org/GNOME/gedit-latex/-/commit/2b4cbb4421b0f4e831550b7bc6a02931314e4133

and Adrian Bunk produced a NMU:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955812#82

... but I just found out the NMU diff was fixing a separate problem,
not the one included in the above patch. And indeed, I just tested the
plugin in bullseye and it produces the same error.

A new upstream version is badly needed and I will try to get it out as
soon as possible, but I will also try to get a backport of this diff to
bullseye (except I never did a backport so not sure how easy it will
be).

Pietro


Il giorno gio, 04/11/2021 alle 16.50 +0100, chrysn ha scritto:
> Package: gedit-latex-plugin
> Version: 3.20.0-2
> Severity: important
> 
> When using this in sid or bookworm, when the plugin is enabled and a
> .tex file opened, nothing happens and this shows up on stderr: 
> 
> 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'
> Traceback (most recent call last):
>   File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 95, in
> _on_save
>     if not 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'
> 
> Could there be an undeclared mismatch between the LaTeX plugin
> version
> and gedit? (Gedit underwent something that looked like a major
> version
> change since the plugin was last updated, maybe an API changed).
> 
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads)
> Kernel taint flags: TAINT_CRAP
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_GB:en
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages gedit-latex-plugin depends on:
> ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-2
> ii  gedit    40.1-2
> ii  libglib2.0-bin   2.70.0-3
> ii  python3  3.9.7-1
> ii  python3-dbus 1.2.18-3
> ii  python3-gi   3.42.0-1+b1
> ii  rubber   1.6.0-2
> 
> Versions of packages gedit-latex-plugin recommends:
> ii  texlive  2021.20210921-1
> 
> gedit-latex-plugin suggests no packages.
> 
> -- no debconf information
> 



Bug#998462: Plugin fails to load

2021-11-04 Thread chrysn
Package: gedit-latex-plugin
Version: 3.20.0-2
Severity: important

When using this in sid or bookworm, when the plugin is enabled and a
.tex file opened, nothing happens and this shows up on stderr: 

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'
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 95, in _on_save
if not 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'

Could there be an undeclared mismatch between the LaTeX plugin version
and gedit? (Gedit underwent something that looked like a major version
change since the plugin was last updated, maybe an API changed).

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gedit-latex-plugin depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-2
ii  gedit40.1-2
ii  libglib2.0-bin   2.70.0-3
ii  python3  3.9.7-1
ii  python3-dbus 1.2.18-3
ii  python3-gi   3.42.0-1+b1
ii  rubber   1.6.0-2

Versions of packages gedit-latex-plugin recommends:
ii  texlive  2021.20210921-1

gedit-latex-plugin suggests no packages.

-- no debconf information

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom


signature.asc
Description: PGP signature