After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655359 - external tools fail unless 'Save' is set to 'Nothing'
external tools fail unless 'Save' is set to 'Nothing'
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-26 16:10 UTC by Andreas Fackler
Modified: 2019-03-23 20:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Fackler 2011-07-26 16:10:54 UTC
If I add an external tool in gedit 3.0.6, assign a shortcut to it and set "Save" to "Nothing", everything works as expected, but if I set "Save" to "Current Document" (or "All Documents"), the shortcut has no visible effect. Instead, the following error is printed on the console from which gedit has been called:

Traceback (most recent call last):
  • File "/usr/lib/gedit/plugins/externaltools/functions.py", line 246 in capture_menu_action
    MultipleDocumentsSaver(window, panel, [window.get_active_document()], node)
  • File "/usr/lib/gedit/plugins/externaltools/functions.py", line 225 in __init__
    Gedit.commands.save_document(window, doc)
  • File "/usr/lib/python2.6/dist-packages/gi/module.py", line 270 in __getattr__
    return getattr(self._introspection_module, name)
  • File "/usr/lib/python2.6/dist-packages/gi/module.py", line 101 in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gedit' object has no attribute 'commands'

It has been pointed out on
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634085
that changing line 225 in functions.py from
Gedit.commands.save_document(window, doc)
to
Gedit.commands_save_document(window, doc)
solves the problem.

Regards,
Andreas
Comment 1 Ignacio Casal Quinteiro (nacho) 2011-07-26 17:44:26 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.