当我使用 lein ring server
启动我的当前项目并尝试通过cider从Emacs连接到它时,我收到以下警告:
; CIDER 0.8.2 (Java 1.7.0_51, Clojure 1.6.0, nREPL 0.2.6)
WARNING: The following required nREPL ops are not supported:
apropos classpath complete eldoc info inspect-start inspect-refresh inspect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resource stacktrace toggle-trace-var toggle-trace-ns undef
Please, install (or update) cider-nrepl 0.8.2 and restart CIDER
user>
然而,在我的project.clj
中,我确实有一个依赖项[cider/cider-nrepl "0.8.2"]
。 当我运行lein repl
时,这个依赖项可以正常工作,并且我可以从cider成功连接到它:
; CIDER 0.8.2 (Java 1.7.0_51, Clojure 1.6.0, nREPL 0.2.6)
swedishchef.handler>
我发现使用Leiningen启动nREPL时会得到两种不同的消息:
[sugarcube->swedishchef]lein ring server
See https://github.com/technomancy/leiningen/wiki/Repeatability)
Started nREPL server on port 44231
这是使用工作中的cider-nrepl连接所得到的输出结果:
[sugarcube->swedishchef]lein repl
See https://github.com/technomancy/leiningen/wiki/Repeatability)
nREPL server started on port 38024 on host 127.0.0.1 - nrepl://127.0.0.1:38024
REPL-y 0.3.5, nREPL 0.2.6
从lein deps :tree
的输出来看,我没有发现任何问题。所以,我的第一个问题是这是否应该起作用,即cider-nrepl
是否应该覆盖lein ring
关于nrepl启动的行为?如果是这样,是否有人能给出进一步排除故障的建议?
lein-ring
。查看lein-ring
的更改日志,很明显这是最近的更改。谢谢! - schaueho