How can I restart swank interactively in Leiningen?

Let's say I run Leiningen interactively ("lein interactive") and run the Swank Clojure server ("swank"). Now I want to kill / restart the Swank server without killing Leiningen as well. How can i do this? Is it possible?

So far, I just used Ctrl-C to kill both, which does not make Leiningen's interactive mode useful to everyone, as I can just run lein swank to get started.

+3
source share
2 answers

This is not yet implemented. However, the interactive task is for people who do not use swank. Swank already keeps the JVM open for your project, so it partially hits the goal of the interactive task.

+1
source

If you use Slime, you can invoke ,rest, bound to (restart-inferior-lisp). This will start your session.

+2
source

Source: https://habr.com/ru/post/1789909/


All Articles