sublime-text-shell-command icon indicating copy to clipboard operation
sublime-text-shell-command copied to clipboard

Allow long-running processes to be terminated by users

Open markbirbeck opened this issue 12 years ago • 9 comments

Long-running processes are independent of Sublime and cannot be terminated, either from the keyboard, or by exiting Sublime.

markbirbeck avatar Nov 26 '13 01:11 markbirbeck

With same feature needed.

ScenK avatar Dec 04 '13 02:12 ScenK

:+1:

temoto avatar Sep 18 '14 13:09 temoto

:+1:

sergei-kucher avatar Nov 22 '14 16:11 sergei-kucher

If a long-running process is displaying its output in a view then something like [CTRL]+C could be used to terminate it. However, if a process is not updating a view -- for example it hasn't yet produced any output -- then the only sign that it is running will be updates on the status bar; we therefore need a command that displays a list of running processes and provides a way to terminate one or other of them.

markbirbeck avatar Jan 03 '15 20:01 markbirbeck

:+1:

rodvlopes avatar Aug 11 '15 21:08 rodvlopes

Commit message on ad231ae is wrong...should be a reference to #50, not #10.

markbirbeck avatar Feb 05 '16 17:02 markbirbeck

@DiegoAz has suggested a neat solution to this in issue #54. He has flagged up that we could take the same approach as the one used in the sublime-gulp plugin at:

https://github.com/NicoSantangelo/sublime-gulp/blob/473cc77564a3175de7c5d54796a1015295293f4f/gulp.py#L399

I'll take a look, and sorry that this has been hanging around for 2 1/2 years!

markbirbeck avatar Mar 30 '16 10:03 markbirbeck

If you want you could test with this project: https://onedrive.live.com/redir?resid=E7859E87B0C492DB!138999&authkey=!AAEPnRNrDjDnJWM&ithint=folder%2csublime-project or clone the repository from https://spring.io/guides/gs/serving-web-content/

When you execute the command gradlew bootRun, the application runs on http://localhost:8080/greeting. I could kill this one, -although I think should be a better way- with:

{ "command": "shell_command", "args": { "command": "netstat -a -n -o" } },

{ "command": "shell_command", "args": { "command": "TASKKILL /F /PID", "arg_required": true, "region": "arg", "refresh": true } }

When you run the command gradlew -t classes the command run a long-running process. This command should be finished in windows with ctrl +d then enter. (https://docs.gradle.org/current/userguide/continuous_build.html)

I hope you find a solution and thanks for your time. :)

Check the NicoSantangelo comment: https://github.com/chrissimpkins/glue/issues/26#issuecomment-57753062

DiegoAz avatar Mar 30 '16 15:03 DiegoAz

A timeout option could also be a good option!

caesarsol avatar Mar 07 '19 11:03 caesarsol