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 736574 - Gedit/OS X: 'external tools' plugin fails to run script when no document open
Gedit/OS X: 'external tools' plugin fails to run script when no document open
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
3.13.x
Other Mac OS
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-12 15:59 UTC by Adrian Custer
Modified: 2019-03-23 20:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[externaltools] Fix running tool without open documents (1.73 KB, patch)
2014-09-14 11:25 UTC, jessevdk@gmail.com
committed Details | Review

Description Adrian Custer 2014-09-12 15:59:50 UTC
The 'tools' (scripts) run by the 'External Tools' plugin allow tools to be defined and active when a GEdit window is open but all text editors are closed. While a tool defined this way shows up in the
    Tools > External Tools > 
sub-menu, when run such a tool does not do anything.

NB. This bug is seen when using beta 3.13.91 on Mac OS X but may apply more broadly.

1) Open GEdit
2) Define a new tool that does a simple 'pwd'
  * Open Tools > Manage External Tools...
  * Click [+] to add a script
  * Change name to 'Ascript'
  * Add as script content:
--------------------------
#!/bin/sh

echo 'Running...'
pwd

--------------------------
  * Change the 'Applicability' to 'Always available'
3) close window

=> The new name shows up in the Tools > External Tools> sub-menu.

4) Open the 'Bottom panel' (from View menu)
5) Run the script from menu [Tools > External Tools > Ascript]

=> The output shows up in the bottom panel

6) Close the empty document with (Command-W or ?Ctrl-W?)

=> The document closes but the window stays open

7) Run the script again from the menu

=> The output window is cleared but now no output appears in the Output panel.

I would expect the script to run given the applicability.

cheers.
Comment 1 jessevdk@gmail.com 2014-09-14 11:25:56 UTC
Created attachment 286163 [details] [review]
[externaltools] Fix running tool without open documents
Comment 2 jessevdk@gmail.com 2014-09-14 11:26:22 UTC
This isn't related to OS X, it also happens on linux. I'm not even sure what the use case of this is, or when it got added.
Comment 3 jessevdk@gmail.com 2014-09-14 11:26:39 UTC
Attachment 286163 [details] pushed as 194ac50 - [externaltools] Fix running tool without open documents