#746 External command hangs if no text is selected

Bug
open-accepted
SciTE (627)
3
2008-11-27
2008-11-24
No

One of SciTE's very useful features is the ability to pass the currently selected text to an external command. This is done using the following line in a .properties file:

command.input.5.*=$(CurrentSelection)

But if such a command is executed while no text is selected, the command hangs. To stop it, one must select "Tools", "Stop Executing". In my opinion, the correct behaviour would be to pass the empty string to the external command.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2008-11-27

    The empty string is passed to the external command. Its up to the command how it responds to no input.

     
  • Neil Hodgson

    Neil Hodgson - 2008-11-27
    • priority: 5 --> 3
    • status: open --> open-invalid
     
  • Clayton Smith

    Clayton Smith - 2008-11-27

    > The empty string is passed to the external command. Its up to the command
    > how it responds to no input.

    My commands do respond correctly when they receive the empty string as input, for example when I pipe it in on the command line. It looks like SciTE is failing to close stdin, and thus my commands hang because they are waiting for additional input.

     
  • Neil Hodgson

    Neil Hodgson - 2008-11-27

    Yes, it isn't closing stdin. I won't be working on this in the near future.

     
  • Neil Hodgson

    Neil Hodgson - 2008-11-27
    • assigned_to: nobody --> nyamatongwe
    • status: open-invalid --> open-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks