【问题标题】:Installation of cider-nrepl安装 cider-nrepl
【发布时间】:2014-10-13 11:33:21
【问题描述】:

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

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

我下载了cider-nrepl,发现它包含闭包代码,而不是 emacs lisp 代码。由于我今天才开始探索 Clojure 世界,并且项目页面上没有安装说明,您能告诉我如何安装 cider-nrepl 吗?

【问题讨论】:

    标签: emacs clojure lisp read-eval-print-loop cider


    【解决方案1】:

    您需要将其放入 lein project.clj 或全局 lein 配置中。摘自official documentation

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

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

    CIDER 的最小profiles.clj 是:

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

    【讨论】:

    • Leiningen 如何知道在哪里可以找到 cider-nrepl 文件?
    • 它以某种方式起作用,这一定是个超级愚蠢的问题,但还是谢谢!
    • Lein 从 clojars 下载它们,并在 CIDER 启动新的 nrepl 会话或连接到现有的...时加载...
    • leiningen 的全部目的是找到依赖关系,并为每次运行或构建提供正确的版本。它使用 maven central、sonatype 和 clojars 等 repos 来查找 deps。
    • 我不知道为什么在 ~/.lein/profiles.clj 添加 :plugins [[cider/cider-nrepl "0.7.0"]] 不起作用。但是我的项目的 project.clj 中的相同表达式: :plugins [[cider/cider-nrepl "0.7.0"]] 按预期工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-28
    • 2017-11-29
    • 2016-04-29
    • 1970-01-01
    • 2014-12-06
    • 2018-10-19
    • 2016-08-08
    相关资源
    最近更新 更多