run-task icon indicating copy to clipboard operation
run-task copied to clipboard

Option for graceful stop of server

Open motz0815 opened this issue 2 years ago • 3 comments

It would be really useful to be able to just run the runServer task again inside of IntelliJ, and that the server then closes gracefully, like if you Ctrl-C inside of the console. This can be done by sending a SIGINT to the JVM, so it has to be possible somehow.

Maybe also a "config" option for people that (don't) need this functionality. Though the maintainer would have to decide what's the default, I'd be happy with both.

motz0815 avatar Mar 14 '22 06:03 motz0815

I don't think this is feasible without an intellij plugin

jpenilla avatar Nov 17 '22 17:11 jpenilla

Doesn't IntelliJ default to "stop and re-run" when you click run while it's already running?

DenWav avatar Jun 28 '23 20:06 DenWav

Yeah but it stops with an error and doesn't properly shut down the server so you will never execute onDisable with the plugin (unless you manually type stop in the console) image

Leguan16 avatar Sep 06 '23 16:09 Leguan16