Question

Let's say I'm running Leiningen in interactive mode ('lein interactive') and have started a Swank Clojure server ('swank'). Now I want to kill/restart the Swank server without killing Leiningen as well. How can I do this? Is this even possible?

So far I've just been using Ctrl-C to kill both, which doesn't make Leiningen's interactive mode all that useful for me since I may as well have just ran 'lein swank' to begin with.

Was it helpful?

Solution

This isn't implemented yet. However, the interactive task is intended for people who don't use swank. Swank already keeps a JVM open for your project, so that kind of defeats the purpose of the interactive task.

OTHER TIPS

If you are using Slime, you can call ,rest which is bound to (restart-inferior-lisp). This will restart your swank session.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top