Emacs live+Clojure+Cider matter



我遇到了这个问题:苹果堆栈并停止评估代码。我重新安装了GNU emacs 24.4.1和emacs Live。当我尝试启动M-x cider-jack-in时,我得到以下错误:

; CIDER 0.9.1 (Java 1.7.0_79, Clojure 1.6.0, nREPL 0.2.6)
WARNING: CIDER requires nREPL 0.2.7 (or newer) to work properly
WARNING: The following required nREPL ops are not supported: 
apropos classpath complete eldoc format-code format-edn info inspect-pop inspect-push inspect-refresh macroexpand ns-list ns-vars ns-path refresh resource stacktrace toggle-trace-var toggle-trace-ns undef
Please, install (or update) cider-nrepl 0.9.1 and restart CIDER
WARNING: The following nREPL ops are not supported:
artifact-list artifact-versions clean-ns configure extract-definition find-debug-fns find-symbol find-unbound hotload-dependency rename-file-or-dir resolve-missing stubs-for-interface version warm-ast-cache
Please, install (or update) refactor-nrepl and restart REPL.
You can mute this warning by changing cljr-suppress-middleware-warnings.
WARNING: CIDER's version (0.9.1) does not match cider-nrepl's version (not installed)

我也有Leiningen 2.5.1在Java 1.7.0_79 OpenJDK Server VM.

必须使用nREPL 0.2.7+

CIDER目前至少需要nREPL 0.2.7才能正常工作(0.2.6中有一些令人讨厌的bug)。不幸的是,最新的leiningen(2.5.1)正好是0.2.6,所以如果你是lein用户,你将不得不做一些手工工作。只需将其添加到profiles.clj:

{:user {:dependencies [[org.clojure/tools.nrepl "0.2.10"]]}}

确保你将新的nREPL依赖项添加到:dependencies键中,而不是:plugins(苹果- nREPL Lein插件所在的位置)。这是一个很常见的错误。

通常建议您使用最新的nREPL和CIDER,因为几乎每个版本都会修复错误。

注意,从项目范围外运行apple -jack-in将导致使用较旧的(0.2.6)nREPL依赖项(至少在Leiningen 2.5.1上)。这可能是Leiningen bug。

https://github.com/clojure-emacs/cider警告-说-你- - -使用- nrepl - 027

最新更新