#889691 gedit-plugin-git: AttributeError calling get_repository on None

Package:
gedit-plugin-git
Source:
gedit-plugins
Description:
Git plugin for gedit
Submitter:
Carl Suster
Date:
2022-06-29 00:27:05 UTC
Severity:
normal
#889691#5
Date:
2018-02-06 01:11:21 UTC
From:
To:
The system logs for gedit contain lines like the following coming from the git
plugin:

Feb  6 11:21:47 colt org.gnome.gedit[1326]: Traceback (most recent call last):
Feb  6 11:21:47 colt org.gnome.gedit[1326]:   File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/windowactivatable.py", line 291, in root_changed
Feb  6 11:21:47 colt org.gnome.gedit[1326]:     repo = self.get_repository(location, True)
Feb  6 11:21:47 colt org.gnome.gedit[1326]:   File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/windowactivatable.py", line 282, in get_repository
Feb  6 11:21:47 colt org.gnome.gedit[1326]:     return self.app_activatable.get_repository(location, is_dir)
Feb  6 11:21:47 colt org.gnome.gedit[1326]: AttributeError: 'NoneType' object has no attribute 'get_repository'
Feb  6 11:21:47 colt org.gnome.gedit[1326]: Traceback (most recent call last):
Feb  6 11:21:47 colt org.gnome.gedit[1326]:   File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/windowactivatable.py", line 298, in inserted
Feb  6 11:21:47 colt org.gnome.gedit[1326]:     repo = self.get_repository(location, msg.is_directory)
Feb  6 11:21:47 colt org.gnome.gedit[1326]:   File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/windowactivatable.py", line 282, in get_repository
Feb  6 11:21:47 colt org.gnome.gedit[1326]:     return self.app_activatable.get_repository(location, is_dir)
Feb  6 11:21:47 colt org.gnome.gedit[1326]: AttributeError: 'NoneType' object has no attribute 'get_repository'

Incidentally, the version of the plugin included in the debian package seems to
be very old. The copyright information installed with the package is a decade
behind the latest release, though the year in the plugin's about dialog is only
about 3 years behind upstream.

#889691#10
Date:
2022-06-29 00:03:21 UTC
From:
To:
I can no longer reproduce this issue so I assume it was fixed by an upstream
updated in the meantime.