让Emacs 24运行SLIME和Clojure Debug Toolkit(CDT)的问题

我正试图让Slime与CDT和emacs 24合作,但无济于事,并希望得到建议.

1)我确实得到了clojure-jack-in来运行,但只有当我将swank-clojure 1.3.3作为lein插件加载时,如github swank-clojure页面中所述,https://github.com/technomancy/swank-clojure.

2)我试图按照George Jahad在http://georgejahad.com/clojure/swank-cdt.html(使用Clojure 1.2.1)的描述加载swank-clojure 1.4.0-SNAPSHOT,但我无法使用clojure-jack-in来运行.我得到了与下面3)中描述的相同的错误.

3)最近,我尝试在technomancy.us网站上复制简短的概念验证视频的结果,在“其中进行了彻底的简化”,http://technomancy.us/149.在这种方法中,我加载了swank-clojure 1.4.0 -SNAPSHOT作为lein插件并确认它被加载到〜/ .lein / plugins / swank-clojure-1.4.0-SNAPSHOT.jar.当我创建一个新的lein项目时,lein deps,它在emacs中打开项目的core.clj文件,然后执行M-x clojure-jack-in,而不是获取REPL,我在emacs迷你缓冲区中收到以下错误:

error in process filter: Search failed: "(run-hooks 'slime-load-hook) ;
on port"

请注意,错误字符串的末尾不包含端口号.除非这是一个更长的错误字符串的任意截断,否则缺少端口号会让我感到不安.

* swank *缓冲区很长,从以下开始:

;;; Bootstrapping bundled version of SLIME; please wait...

并以:结尾

(provide 'slime-repl)
;;; slime-repl.el ends here

(run-hooks 'slime-load-hook)
;;; proceed to jack in

这与错误消息一致.

我花了大约六个小时,包括很多网络搜索,没有运气.感谢您的任何帮助,您可以提供.

ADDENDUM:我一直在试验,现在* swank *缓冲区像以前一样结束(在同一个地方死亡),但最后有额外的行.仅供参考,这里是:

(provide 'slime-repl)
;;; slime-repl.el ends here

(run-hooks 'slime-load-hook)
[WARNING] Overriding profile: 'null' (source: pom) with new instance from source: pom
[WARNING] Overriding profile: 'null' (source: pom) with new instance from source: pom
[WARNING] Overriding profile: 'null' (source: pom) with new instance from source: pom
Downloading: org/clojure/clojure/1.+/clojure-1.+.pom from repository clojars at http://clojars.org/repo/
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure:clojure:pom:1.+' in repository clojars (http://clojars.org/repo/)
Downloading: org/clojure/clojure/1.+/clojure-1.+.pom from repository stuartsierra-releases at http://stuartsierra.com/maven2
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure:clojure:pom:1.+' in repository stuartsierra-releases (http://stuartsierra.com/maven2)
Downloading: org/clojure/clojure/1.+/clojure-1.+.pom from repository clojure at http://build.clojure.org/releases
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure:clojure:pom:1.+' in repository clojure (http://build.clojure.org/releases)
Downloading: org/clojure/clojure/1.+/clojure-1.+.pom from repository clojure-snapshots at http://build.clojure.org/snapshots
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure:clojure:pom:1.+' in repository clojure-snapshots (http://build.clojure.org/snapshots)
Downloading: org/clojure/clojure/1.+/clojure-1.+.pom from repository central at http://repo1.maven.org/maven2
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure:clojure:pom:1.+' in repository central (http://repo1.maven.org/maven2)
Copying 9 files to /Users/gw/tech/clojurestuff/cljprojects/infwb/lib
Copying 1 file to /Users/gw/tech/clojurestuff/cljprojects/infwb/lib/dev
Listening for transport dt_socket at address: 61012
;;; proceed to jack in

(附录结束)

附录2(2011年12月12日)感谢所有提供帮助的人,特别是@ivant,我正在给予他们“复选标记”.我将考虑关闭这种情况,因为我已经放弃了尝试修复它.我使用预先打包的初始化软件包很复杂,我确信它非常好,但是我无法理解它在做什么,也不知道它是否导致问题.

我重新启动了一个“干净”的Emacs 24并恢复到swank-clojure 1.3.3,而clojure-jack-in现在工作得很好.我将稍后尝试CDT,一旦记录到swank-clojure 1.4.0-SNAPSHOT的错误得到解决.

我从人们的评论中学到了一些东西 – 再次感谢.

最佳答案 升级到swank-clojure 1.4.0(昨天发布),一切都将开箱即用. lein插件安装swank-clojure 1.4.0

CDT安装和集成现已完全自动化.一定要删除你躺着的swank-clojure,slime.el和slime-repl.el的旧版本.为了安全起见,还要确保安装了最新的clojure-mode.el.

点赞