简体   繁体   English

clojure REPL - 从另一个进程连接

[英]clojure REPL - connect from another process

how to connect to existing clojure REPL from ClojureScript or from Java? 如何从ClojureScript或Java连接到现有的clojure REPL?

the question from title. 标题问题。 Is there a helper class/library? 有辅助类/库吗?

check out the network repl nrepl 看看网络repl nrepl

it lets you connect to your repl over a network from any code you want 它允许您通过网络从您想要的任何代码连接到您的repl

You are probably using Leiningen, so: 你可能正在使用Leiningen,所以:

lein repl :connect 51000

(where the last number is the existing port number from the .nrepl-port file) (最后一个数字是.nrepl-port文件中的现有端口号)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM