Bug#955812: gedit-latex-plugin does not work anymore

2020-04-16 Thread Maurizio Quadrio
Dear Pietro,

I can confirm it works. Many thanks for your help!



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-16 Thread Pietro Battiston
Il giorno dom, 12/04/2020 alle 18.12 +0200, Maurizio Quadrio ha
scritto:
> > [...]
> if BENCHMARK: t = time.clock()
> AttributeError: module 'time' has no attribute 'clock'

This (and the other AttributeError that followed) should be fixed by

https://gitlab.gnome.org/GNOME/gedit-latex/-/commit/0cf04556eeb3f35084051d5ec98c345432a838fe

... but you might need to also apply

https://gitlab.gnome.org/GNOME/gedit-latex/-/commit/959755c21d9909dafdd639455a1e621063b9c633

Then the plugin should work again.

I plan to create a release and the new Debian package in the next days.

Pietro



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-12 Thread Pietro Battiston
Thanks Maurizio!

Il giorno dom, 12/04/2020 alle 18.12 +0200, Maurizio Quadrio ha
scritto:
> > Mmmhhh... that's strange. Are you sure you only edited the line
> > starting with "location = self.text_buffer"?!
> [...]
> AttributeError: 'LaTeXEditor' object has no attribute
> '_document_is_master'

OK, seems to be

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

Will try to fix this too.

Pietro



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-12 Thread Maurizio Quadrio


> Mmmhhh... that's strange. Are you sure you only edited the line
> starting with "location = self.text_buffer"?!

Sorry, my fault, I misunderstood the color code and deleted too much.

Now the change is applied correctly. Plugin loads, the toolbar appears
afer loading (or at startup if left loaded). This is my trace, I guess
only the last chance is relevant to gedit-latex.

[495][mq.asus: Varie]$ gedit reference-martino.tex &
[1] 68322
[495][mq.asus: Varie]$ Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/latex/latex/editor.py", line 252, in __parse
if BENCHMARK: t = time.clock()
AttributeError: module 'time' has no attribute 'clock'

[495][mq.asus: Varie]$ Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 98, in _on_save
self._editor.on_save()
  File "/usr/lib/gedit/plugins/latex/latex/editor.py", line 211, in on_save
self.__parse()
  File "/usr/lib/gedit/plugins/latex/latex/editor.py", line 252, in __parse
if BENCHMARK: t = time.clock()
AttributeError: module 'time' has no attribute 'clock'
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/latex/tools/__init__.py", line 133, in
run_tool
self._runner.run(context.active_editor.file, self._tool, tool_view)
  File "/usr/lib/gedit/plugins/latex/latex/editor.py", line 385, in file
if self._document_is_master:
AttributeError: 'LaTeXEditor' object has no attribute '_document_is_master'



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-12 Thread Pietro Battiston
Il giorno dom, 12/04/2020 alle 16.24 +0200, Maurizio Quadrio ha
scritto:
> @return: the extension of the currently opened file
>  ^
> SyntaxError: invalid syntax


Mmmhhh... that's strange. Are you sure you only edited the line
starting with "location = self.text_buffer"?!



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-12 Thread Maurizio Quadrio
Checked it the simple way, it does not work.

gedit at 3.36.1-2 as requested. It fires up correctly with plugin
unchecked. When activated via Preferences -> Plugins this is the output
I get together with a warning sign:

** (gedit:56510): WARNING **: 16:19:55.334: Error importing plugin 'latex':
Traceback (most recent call last):
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 783, in exec_module
  File "", line 219, in
_call_with_frames_removed
  File "/usr/lib/gedit/plugins/latex/__init__.py", line 39, in 
from .windowactivatable import LaTeXWindowActivatable
  File "/usr/lib/gedit/plugins/latex/windowactivatable.py", line 38, in

from .tabdecorator import GeditTabDecorator
  File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 187
@return: the extension of the currently opened file
 ^
SyntaxError: invalid syntax

(gedit:56510): libpeas-WARNING **: 16:19:55.334: Error loading plugin
'latex'



On 4/12/20 4:11 PM, Pietro Battiston wrote:
> Sorry, forget my last comment, only now I read the entire
> gitlab.gnome.org bug, and produced a simple patch:
> https://gitlab.gnome.org/GNOME/gedit-latex/-/commit/2b4cbb4421b0f4e831550b7bc6a02931314e4133
> 
> It works with gedit 3.30.2, so if any of you could test it with gedit
> 3.36.1-1 (even just editing that single file by hand), then I'd be
> happy to merge the fix upstream and then update the Debian package.
> Otherwise, I'll try to get a sid install running and test myself as
> soon as possible.



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-12 Thread Pietro Battiston
Sorry, forget my last comment, only now I read the entire
gitlab.gnome.org bug, and produced a simple patch:
https://gitlab.gnome.org/GNOME/gedit-latex/-/commit/2b4cbb4421b0f4e831550b7bc6a02931314e4133

It works with gedit 3.30.2, so if any of you could test it with gedit
3.36.1-1 (even just editing that single file by hand), then I'd be
happy to merge the fix upstream and then update the Debian package.
Otherwise, I'll try to get a sid install running and test myself as
soon as possible.

Pietro

Il giorno sab, 11/04/2020 alle 19.28 +0200, Maurizio Quadrio ha
scritto:
> Dear Pietro,
> 
> thanks for your efforts. I fear the issue is related to both gedit-
> latex
> (upstream) *and* gedit. I also have a feeling that the trace I sent
> before was there since quite some time, whereas gedit-latex (which I
> use
> daily) broke a couple weeks ago.
> 
> Anyway, I'll stay tuned and see what happens...
> 
> 
> > 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
> > 



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-11 Thread Maurizio Quadrio
Dear Pietro,

thanks for your efforts. I fear the issue is related to both gedit-latex
(upstream) *and* gedit. I also have a feeling that the trace I sent
before was there since quite some time, whereas gedit-latex (which I use
daily) broke a couple weeks ago.

Anyway, I'll stay tuned and see what happens...


> 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
> 



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-11 Thread Pietro Battiston
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



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-11 Thread Maurizio Quadrio
On Sun, 05 Apr 2020 19:52:40 +0200 Matthias Brennwald
 wrote:
> I ran gedit from the terminal. There was no warning, error or other
> message.

I can confirm the error, identical situation here.

The plugin is semi-active: it provides menu entries, but does not
perform actions like compilation. The bottom commandi window does not
appear. This is what I get (only after opening a tex file):


[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'



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-05 Thread Matthias Brennwald
I ran gedit from the terminal. There was no warning, error or other 
message.



On So, 5 Apr, 2020 at 12:46, Pietro Battiston  
wrote:

Matthias, thank you for your report.

Indeed, I still didn't test the plugin with gedit version later 
3.30.2.


Could you please try running gedit from the terminal (with "-s" if you
have other windows open already) and report any warning/error message?

Thanks,

Pietro



Il giorno dom, 05/04/2020 alle 10.06 +0200, Matthias Brennwald ha
scritto:

 Package: gedit-latex-plugin
 Version: 3.20.0-1
 Severity: important

 I am running on Debian Testing. Since pulling in an upgrade
 yesterday, the
 gedit-latex-plugin does not work anymore. The gedit bottom panel 
used

 to show
 the LaTeX stuff, now it's just empty. Running the LaTeX compiler 
from

 within
 gedit (CTRL-ALT-1) does nothing. This happened to me on two 
different

 machines.
 I confirmed the plugin is activated in the gedit preferences.



 -- System Information:
 Debian Release: bullseye/sid
   APT prefers testing
   APT policy: (950, 'testing'), (800, 'stable')
 Architecture: amd64 (x86_64)

 Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
 Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
 LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /usr/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.36.0-1
 ii  gedit3.36.1-1
 ii  gvfs-bin 1.44.1-1
 ii  python3  3.8.2-2
 ii  python3-dbus 1.2.16-1
 ii  python3-gi   3.36.0-1
 ii  rubber   1.5.1-2

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

 gedit-latex-plugin suggests no packages.

 -- no debconf information






Bug#955812: gedit-latex-plugin does not work anymore

2020-04-05 Thread Pietro Battiston
Matthias, thank you for your report.

Indeed, I still didn't test the plugin with gedit version later 3.30.2.

Could you please try running gedit from the terminal (with "-s" if you
have other windows open already) and report any warning/error message?

Thanks,

Pietro



Il giorno dom, 05/04/2020 alle 10.06 +0200, Matthias Brennwald ha
scritto:
> Package: gedit-latex-plugin
> Version: 3.20.0-1
> Severity: important
> 
> I am running on Debian Testing. Since pulling in an upgrade
> yesterday, the
> gedit-latex-plugin does not work anymore. The gedit bottom panel used
> to show
> the LaTeX stuff, now it's just empty. Running the LaTeX compiler from
> within
> gedit (CTRL-ALT-1) does nothing. This happened to me on two different
> machines.
> I confirmed the plugin is activated in the gedit preferences.
> 
> 
> 
> -- System Information:
> Debian Release: bullseye/sid
>   APT prefers testing
>   APT policy: (950, 'testing'), (800, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
> Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /usr/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.36.0-1
> ii  gedit3.36.1-1
> ii  gvfs-bin 1.44.1-1
> ii  python3  3.8.2-2
> ii  python3-dbus 1.2.16-1
> ii  python3-gi   3.36.0-1
> ii  rubber   1.5.1-2
> 
> Versions of packages gedit-latex-plugin recommends:
> ii  texlive  2019.20200302-1
> 
> gedit-latex-plugin suggests no packages.
> 
> -- no debconf information



Bug#955812: gedit-latex-plugin does not work anymore

2020-04-05 Thread Matthias Brennwald
Package: gedit-latex-plugin
Version: 3.20.0-1
Severity: important

I am running on Debian Testing. Since pulling in an upgrade yesterday, the
gedit-latex-plugin does not work anymore. The gedit bottom panel used to show
the LaTeX stuff, now it's just empty. Running the LaTeX compiler from within
gedit (CTRL-ALT-1) does nothing. This happened to me on two different machines.
I confirmed the plugin is activated in the gedit preferences.



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (950, 'testing'), (800, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/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.36.0-1
ii  gedit3.36.1-1
ii  gvfs-bin 1.44.1-1
ii  python3  3.8.2-2
ii  python3-dbus 1.2.16-1
ii  python3-gi   3.36.0-1
ii  rubber   1.5.1-2

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

gedit-latex-plugin suggests no packages.

-- no debconf information