我无法初始化 swank 和 clojure-jack-in

发布于 2024-12-18 02:49:46 字数 852 浏览 2 评论 0原文

我有问题。我已经使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

迎风吟唱 2024-12-25 02:49:46

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

lein plugin install swank-clojure 1.3.3

I'm not sure what elein is, but I think for clojure-jack-in you need to install the swank-clojure plugin:

lein plugin install swank-clojure 1.3.3
再见回来 2024-12-25 02:49:46

更新:从 2013 年开始,首选 Mx nrepl-jack-in jack-in


方法是首选方法,但您也可以尝试旧的最爱:

$ lein swank

从项目的主目录运行,然后:

M-X slime-connect

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

$ lein plugin install swank-clojure 1.3.3

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

$ lein swank

from the project's main dir, and then:

M-X slime-connect

from emacs. You still need swank-clojure:

$ lein plugin install swank-clojure 1.3.3
第七度阳光i 2024-12-25 02:49:46

当我从旧版本克隆别人的 clojure 项目时,这发生在我身上。他们的project.clj有:

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

如果您使用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:

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

which is incorrect, i think, if you're using M-x clojure-jack-in. removing these lines, running lein deps and jacking in worked for me.

说不完的你爱 2024-12-25 02:49:46

如果您使用的是 lein 2,请尝试将 {:user {:plugins [[lein-swank "1.4.4"]] } } 添加到 ~/.lein/profiles.clj。请参阅 https://github.com/technomancy/leiningen/wiki/Upgradinghttps://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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文