如何在 Leiningen 的交互模式下重新启动 swank?
假设我正在交互模式(“lein Interactive”)下运行 Leiningen,并启动了 Swank Clojure 服务器(“swank”)。现在我想杀死/重新启动 Swank 服务器而不杀死 Leiningen。我该怎么做?这可能吗?
到目前为止,我只是使用 Ctrl-C 来杀死两者,这并不会使 Leiningen 的交互模式对我来说很有用,因为我可能一开始就运行了“lein swank”。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 Slime,则可以调用绑定到
(restart-inferior-lisp)
的,rest
。这将重新启动您的炫耀会话。If you are using Slime, you can call
,rest
which is bound to(restart-inferior-lisp)
. This will restart your swank session.这还没有实施。然而,交互式任务是为不使用 swank 的人准备的。 Swank 已经为您的项目保留了一个 JVM,因此这违背了交互式任务的目的。
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.