【发布时间】:2015-04-28 18:48:35
【问题描述】:
当我使用 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 0.8.2 (Java 1.7.0_51, Clojure 1.6.0, nREPL 0.2.6)
swedishchef.handler>
我可以看到我从 leiningen wrt 收到了两条不同的消息。 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 rings 的行为。到 nrepl 启动?如果是这样,有人可以提供一些建议以进行进一步的故障排除吗?
【问题讨论】:
标签: emacs clojure leiningen ring cider