Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow long-running processes to be terminated by users #10

Open
markbirbeck opened this issue Nov 26, 2013 · 9 comments
Open

Allow long-running processes to be terminated by users #10

markbirbeck opened this issue Nov 26, 2013 · 9 comments

Comments

@markbirbeck
Copy link
Owner

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

@ScenK
Copy link

ScenK commented Dec 4, 2013

With same feature needed.

@temoto
Copy link

temoto commented Sep 18, 2014

👍

1 similar comment
@sergei-kucher
Copy link

👍

@markbirbeck
Copy link
Owner Author

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.

@rodvlopes
Copy link

👍

@markbirbeck
Copy link
Owner Author

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

@markbirbeck
Copy link
Owner Author

@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!

@DiegoAz
Copy link

DiegoAz commented Mar 30, 2016

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: chrissimpkins/glue#26 (comment)

@caesarsol
Copy link

A timeout option could also be a good option!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants