我既不能初始化时髦,也不能初始化



我遇到了一个问题。我已经安装了clojure, slime, slime-repl和elein使用果酱。现在我打开我的项目并调用ein-swank。我得到这个:

Starting swank..
error in process filter: slime-presentation-init-keymaps: Symbol's function definition is void: slime-define-both-key-bindings
error in process filter: Symbol's function definition is void: slime-define-both-key-bindings

如果我尝试clojure-jack-in,我得到

Debugger entered--Lisp error: (error "Could not start swank server: That's not a task. Use "lein help" to list all tasks.
signal(error ("Could not start swank server: That's not a task. Use "lein help" to list all tasks.n"))
error("Could not start swank server: %s" "That's not a task. Use "lein help" to list all tasks.n")
  clojure-jack-in-sentinel(#<process swank> "exited abnormally with code 1n")

我能做什么?

我不确定elein是什么,但我认为clojure-jack-in你需要安装swank-clojure插件:

lein plugin install swank-clojure 1.3.3

更新:截至2013年,M-x nrel -jack-in是首选


插入式方法是首选方法,但您也可以尝试以前最喜欢的方法:run

$ lein swank

从项目的主目录,然后:

M-X slime-connect

从emacs。你仍然需要swank-clojure:

$ lein plugin install swank-clojure 1.3.3

当我从一个旧版本克隆别人的clojure项目时,这种情况就发生在我身上。他们的项目。CLJ had:

:dev-dependencies [[lein-clojars "0.5.0"]
                   [swank-clojure "1.2.1"]]

这是不正确的,我认为,如果你使用M-x clojure-jack-in。删除这些行,运行lein deps并插入对我有效。

如果您正在使用lein 2,那么尝试添加{:user {:plugins [[lein-swank "1.4.4"]]}}到~/.lein/profiles.clj。参见https://github.com/technomancy/leiningen/wiki/Upgrading和https://github.com/technomancy/swank-clojure的插件部分

最新更新