我无法初始化 swank 和 clojure-jack-in
我有问题。我已经使用 marmalade 安装了 clojure、slime、slime-repl 和 elein。现在我打开我的项目并调用 elein-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 1\n")
我能做什么?
I've a problem. I've installed clojure, slime, slime-repl and elein using marmalade. Now I open my project and call elein-swank. I get this:
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
and If I try clojure-jack-in I get
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 1\n")
What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不确定 elein 是什么,但我认为对于 clojure-jack-in ,您需要安装 swank-clojure 插件:
I'm not sure what
elein
is, but I think forclojure-jack-in
you need to install theswank-clojure
plugin:更新:从 2013 年开始,首选 Mx nrepl-jack-in jack-in
方法是首选方法,但您也可以尝试旧的最爱:
从项目的主目录运行,然后:
从 emacs 运行。你仍然需要 swank-clojure:
update: as of 2013, M-x nrepl-jack-in is preferred
The jack-in method is the preferred one, but you may also try the old favorite: run
from the project's main dir, and then:
from emacs. You still need swank-clojure:
当我从旧版本克隆别人的 clojure 项目时,这发生在我身上。他们的project.clj有:
如果您使用Mx clojure-jack-in,我认为这是不正确的。删除这些行,运行 lein deps 并插入对我有用。
this happened to me when i cloned someone else's clojure project from an older version. their project.clj had:
which is incorrect, i think, if you're using
M-x clojure-jack-in
. removing these lines, runninglein deps
and jacking in worked for me.如果您使用的是 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
If you're using lein 2, then try adding {:user {:plugins [[lein-swank "1.4.4"]] } } to ~/.lein/profiles.clj. see the Plugins section of https://github.com/technomancy/leiningen/wiki/Upgrading and https://github.com/technomancy/swank-clojure