Allow long-running processes to be terminated by users
Long-running processes are independent of Sublime and cannot be terminated, either from the keyboard, or by exiting Sublime.
With same feature needed.
:+1:
:+1:
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.
:+1:
Commit message on ad231ae is wrong...should be a reference to #50, not #10.
@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!
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
A timeout option could also be a good option!