安装 cider-nrepl [英] Installation of cider-nrepl

查看:39
本文介绍了安装 cider-nrepl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 CIDER 0.7.0,现在当我在 Emacs 中启动它时(通过 Mx cider-jack-in RET),我收到以下警告:

<块引用>

警告:CIDER 的版本 (0.7.0) 与 cider-nrepl 的版本不匹配(未安装)

我下载了 cider-nrepl 并发现它由闭包代码组成,而不是 emacs lisp 代码.由于我今天才开始探索Clojure世界,项目页面上也没有安装说明,请问如何安装cider-nrepl?

解决方案

你需要把它放到 lein project.clj 或全局 lein 配置中.摘自官方文档:

<块引用>

在项目的 project.clj 文件或 ~/.lein/profiles.clj 中的 :user 配置文件中使用方便的默认插件.

:plugins [[cider/cider-nrepl "0.7.0"]]

<块引用>

CIDER 的最小配置文件.clj 将是:

{:user {:plugins [[cider/cider-nrepl "0.7.0"]]}}

I've installed CIDER 0.7.0 and now when I start it inside of Emacs (via M-x cider-jack-in RET), I get the following warning:

WARNING: CIDER's version (0.7.0) does not match cider-nrepl's version (not installed)

I've downloaded cider-nrepl and found out that it consists of closure code, not emacs lisp code. Since I've started exploring Clojure world just today, and there is no installation instructions on the project page, could you tell me how can I install cider-nrepl?

解决方案

You need to put it into lein project.clj or into global lein configuration. Excerpt from official documentation:

Use the convenient plugin for defaults, either in your project's project.clj file or in the :user profile in ~/.lein/profiles.clj.

:plugins [[cider/cider-nrepl "0.7.0"]]

A minimal profiles.clj for CIDER would be:

{:user {:plugins [[cider/cider-nrepl "0.7.0"]]}}

这篇关于安装 cider-nrepl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆