简体   繁体   English

为什么苹果酒挂在emacs中

[英]Why is cider-jack-in hanging in emacs

I'm working through the following tutorial on Clojure . 我正在研究Clojure的以下教程 I've just installed both Emacs and Leiningen. 我刚刚安装了Emacs和Leiningen。 If invoked separately, both work. 如果分别调用,则两者均起作用。 However, when I am trying to invoke cider-jack-in , as described in the tutorial: 但是,当我尝试调用cider-jack-in ,如本教程中所述:

Using Emacs, open the file clojure-noob/src/clojure_noob/core.clj, which you created in Chapter 1. Next, use Mx cider-jack-in. 使用Emacs打开在第1章中创建的文件clojure-noob / src / clojure_noob / core.clj。接下来,使用Mx cider-jack-in。 This starts the REPL and creates a new buffer where you can interact with it. 这将启动REPL并创建一个新的缓冲区,您可以在其中与之交互。

that hangs forever after the last message: 在最后一条消息之后永远挂起:

Starting nREPL server via lein repl :headless...
You can run the command `cider-jack-in' with C-c M-j
Starting nREPL server via lein repl :headless...

What am I doing wrong? 我究竟做错了什么?

Edit: To solve the problem, I upgraded leiningen from 1.7 (that's what apt-get installed) to 2.6.1. 编辑:为解决此问题,我将leiningen从1.7(这是apt-get安装的)升级到2.6.1。

Recently cider changed so you no longer need to add things to ~/.lein/profiles.clj to install cider-nrepl and clj-refactor. 最近对cider进行了更改,因此您不再需要在〜/ .lein / profiles.clj中添加内容来安装cider-nrepl和clj-refactor。 Cider will take care of that now. 苹果酒现在会解决这个问题。 You should remove that part from your config. 您应该从配置中删除该部分。

In general for these situations it help to run lein from the command line first and make sure it can actually get the projects dependencies. 通常,对于这些情况,它有助于首先从命令行运行lein,并确保它实际上可以获取项目依赖项。 Most of the times it's sitting there downloading a jar file at 3 bytes per second and not actually stalled. 大多数情况下,它坐在那里以每秒3字节的速度下载jar文件,而实际上并没有停止。 Other times it's failing with SSL/TLS certificate validation problems. 其他时候,它因SSL / TLS证书验证问题而失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM