2012-02-23 44 views
0

我已经升级了我的leiningen版本(以前我使用的是1.4)。我的粘液版本也是最新的。现在,当我键入lein jack-in <port>lein swank我得到这个:lein jack-in和lein swank在将leiningen升级到版本1.7.0后不工作

lein jack-in 9090 
;;; Bootstrapping bundled version of SLIME; please wait... 


(when (not (featurep 'slime-cdf283b4)) 
       (if (file-readable-p "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-cdf283b4.elc") 
       (load-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-cdf283b4.elc") 
       (byte-compile-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-cdf283b4.el" t))) 
(when (not (featurep 'slime-frame-colors-a24dd450)) 
       (if (file-readable-p "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-frame-colors-a24dd450.elc") 
       (load-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-frame-colors-a24dd450.elc") 
       (byte-compile-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-frame-colors-a24dd450.el" t))) 
(when (not (featurep 'slime-repl-79b38c83)) 
       (if (file-readable-p "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-repl-79b38c83.elc") 
       (load-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-repl-79b38c83.elc") 
       (byte-compile-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-repl-79b38c83.el" t))) 
(when (not (featurep 'slime-eldoc-d8b3cf74)) 
       (if (file-readable-p "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-eldoc-d8b3cf74.elc") 
       (load-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-eldoc-d8b3cf74.elc") 
       (byte-compile-file "C:\Documents and Settings\Carlos/.emacs.d/swank/slime-eldoc-d8b3cf74.el" t))) 
(sleep-for 0.1) 
(run-hooks 'slime-load-hook) ; on port 9090 
Warning: *log-events* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *log-events* or change the name. 
Warning: *log-output* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *log-output* or change the name. 
Warning: *namespace-re* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *namespace-re* or change the name. 
    Warning: *current-connection* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *current-connection* or change the name. 
    Warning: *default-encoding* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *default-encoding* or change the name. 
    Warning: *pre-reply-hook* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *pre-reply-hook* or change the name. 
Warning: *pre-reply-hook* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *pre-reply-hook* or change the name. 
Warning: *thread-map-next-id* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *thread-map-next-id* or change the name. 
Warning: *thread-map-next-id* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *thread-map-next-id* or change the name. 
Warning: *thread-map* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *thread-map* or change the name. 
Warning: *thread-map* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *thread-map* or change the name. 
Warning: *mailboxes* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *mailboxes* 
or change the name. 
Warning: *mailboxes* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *mailboxes* 
or change the name. 
Warning: *protocol-version* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *protocol-version* or change the name. 
Warning: *protocol-version* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *protocol-version* or change the name. 
Warning: *current-package* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *current-package* or change the name. 
Warning: *pending-continuations* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic 
*pending-continuations* or change the name. 
Warning: *sldb-stepping-p* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *sldb-stepping-p* or change the name. 
Warning: *sldb-initial-frames* not declared dynamic and thus is not dynamically 
rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *sldb-initial-frames* or change the name. 
Warning: *sldb-level* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *sldb-level* or change the name. 
Warning: *sldb-restarts* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *sldb-restarts* or change the name. 
Warning: *debug-swank-clojure* not declared dynamic and thus is not dynamically 
rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *debug-swank-clojure* or change the name. 
Warning: *active-threads* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *active-threads* or change the name. 
Warning: *active-threads* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *active-threads* or change the name. 
Warning: *debug-quit-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *debug-quit-exception* or change the name. 
Warning: *debug-quit-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *debug-quit-exception* or change the name. 
Warning: *debug-continue-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *debug-continue-exception* or change the name. 
Warning: *debug-continue-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *debug-continue-exception* or change the name. 
Warning: *debug-abort-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic 
*debug-abort-exception* or change the name. 
Warning: *debug-abort-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic 
*debug-abort-exception* or change the name. 
Warning: *current-exception* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *current-exception* or change the name. 
Warning: *current-env* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *current-env* or change the name. 
Warning: *connections* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *connections* or change the name. 
Warning: *connections* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *connections* or change the name. 
Warning: *compiler-exception-location-re* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *compiler-exception-location-re* or change the name. 
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: print-doc in this context, compiling:(swank/commands/basic.clj:180) 
     at clojure.lang.Compiler.analyze(Compiler.java:6235) 
     at clojure.lang.Compiler.analyze(Compiler.java:6177) 
     at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3452) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6411) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyze(Compiler.java:6177) 
     at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5572) 
     at clojure.lang.Compiler$TryExpr$Parser.parse(Compiler.java:2091) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6409) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyze(Compiler.java:6177) 
     at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5572) 
     at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:5873) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6409) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6397) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6397) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyze(Compiler.java:6177) 
     at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5572) 
     at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:5873) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6409) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6397) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6397) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyze(Compiler.java:6177) 
     at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5572) 
     at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5008) 
     at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3629) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6407) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6397) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.access$100(Compiler.java:37) 
     at clojure.lang.Compiler$DefExpr$Parser.parse(Compiler.java:492) 
     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6409) 
     at clojure.lang.Compiler.analyze(Compiler.java:6216) 
     at clojure.lang.Compiler.analyze(Compiler.java:6177) 
     at clojure.lang.Compiler.eval(Compiler.java:6469) 
     at clojure.lang.Compiler.load(Compiler.java:6902) 
     at clojure.lang.RT.loadResourceScript(RT.java:357) 
     at clojure.lang.RT.loadResourceScript(RT.java:348) 
     at clojure.lang.RT.load(RT.java:427) 
     at clojure.lang.RT.load(RT.java:398) 
     at clojure.core$load$fn__4610.invoke(core.clj:5386) 
     at clojure.core$load.doInvoke(core.clj:5385) 
     at clojure.lang.RestFn.invoke(RestFn.java:408) 
     at clojure.core$load_one.invoke(core.clj:5200) 
     at clojure.core$load_lib.doInvoke(core.clj:5237) 
     at clojure.lang.RestFn.applyTo(RestFn.java:142) 
     at clojure.core$apply.invoke(core.clj:602) 
     at clojure.core$load_libs.doInvoke(core.clj:5275) 
     at clojure.lang.RestFn.applyTo(RestFn.java:137) 
     at clojure.core$apply.invoke(core.clj:602) 
     at clojure.core$require.doInvoke(core.clj:5352) 
     at clojure.lang.RestFn.invoke(RestFn.java:421) 
     at swank.swank$eval35$loading__4505__auto____36.invoke(swank.clj:11) 
     at swank.swank$eval35.invoke(swank.clj:11) 
     at clojure.lang.Compiler.eval(Compiler.java:6465) 
     at clojure.lang.Compiler.eval(Compiler.java:6455) 
     at clojure.lang.Compiler.load(Compiler.java:6902) 
     at clojure.lang.RT.loadResourceScript(RT.java:357) 
     at clojure.lang.RT.loadResourceScript(RT.java:348) 
     at clojure.lang.RT.load(RT.java:427) 
     at clojure.lang.RT.load(RT.java:398) 
     at clojure.core$load$fn__4610.invoke(core.clj:5386) 
     at clojure.core$load.doInvoke(core.clj:5385) 
     at clojure.lang.RestFn.invoke(RestFn.java:408) 
     at clojure.core$load_one.invoke(core.clj:5200) 
     at clojure.core$load_lib.doInvoke(core.clj:5237) 
     at clojure.lang.RestFn.applyTo(RestFn.java:142) 
     at clojure.core$apply.invoke(core.clj:602) 
     at clojure.core$load_libs.doInvoke(core.clj:5271) 
     at clojure.lang.RestFn.applyTo(RestFn.java:137) 
     at clojure.core$apply.invoke(core.clj:602) 
     at clojure.core$require.doInvoke(core.clj:5352) 
     at clojure.lang.RestFn.invoke(RestFn.java:408) 
     at user$eval27.invoke(NO_SOURCE_FILE:1) 
     at clojure.lang.Compiler.eval(Compiler.java:6465) 
     at clojure.lang.Compiler.eval(Compiler.java:6455) 
     at clojure.lang.Compiler.eval(Compiler.java:6431) 
     at clojure.core$eval.invoke(core.clj:2795) 
     at clojure.main$eval_opt.invoke(main.clj:296) 
     at clojure.main$initialize.invoke(main.clj:315) 
     at clojure.main$null_opt.invoke(main.clj:348) 
     at clojure.main$main.doInvoke(main.clj:426) 
     at clojure.lang.RestFn.invoke(RestFn.java:421) 
     at clojure.lang.Var.invoke(Var.java:405) 
     at clojure.lang.AFn.applyToHelper(AFn.java:163) 
     at clojure.lang.Var.applyTo(Var.java:518) 
     at clojure.main.main(main.java:37) 
Caused by: java.lang.RuntimeException: Unable to resolve symbol: print-doc in this context 
     at clojure.lang.Util.runtimeException(Util.java:156) 
     at clojure.lang.Compiler.resolveIn(Compiler.java:6720) 
     at clojure.lang.Compiler.resolve(Compiler.java:6664) 
     at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6625) 
     at clojure.lang.Compiler.analyze(Compiler.java:6198) 
     ... 93 more 

OK,这个错误实在是太丑了,但看一看:

Bootstrapping bundled version of SLIME; please wait... 

Warning: *current-env* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *current-env* or change the name. 

这是什么意思?

+0

你能告诉我们你已经安装的版本'斯旺克,clojure'插件?另外,你能否在你的端口中包含你的'project.clj'文件。 – liwp 2012-02-23 20:44:29

+0

嗨,我使用最新的swank-cloj(swank-clojure 1.4.0)...我的project.clj是默认的...我想也许可能是一个下载的包中的错误,所以我决定尝试与一个默认项目(Lein新测试项目..光盘testproject .. lein swank)既不工作:(... – CocoOS 2012-02-23 22:10:31

回答

0

我想你正在运行与旧版本swank-clojure Clojure 1.3.0不兼容1.3.0。

在您的文章中的错误是这行:

Unable to resolve symbol: print-doc in this context, 
    compiling:(swank/commands/basic.clj:180) 

print-doc在Clojure中的1.3.0版本搬到clojure.repl

你安装了什么版本的swank-clojure插件?

尝试安装1.4.0版swank-clojure插件与

lein plugin install swank-clojure 1.4.0 
+0

嗨感谢您的答案...以及我已经尝试下载swank-clojure 1.4.0 ..这是下载和安装,但th仍然显示错误..你..你是对的..当我使用clojure 1.2.1这项工作...我想比也许我会使用clojure 1.2版本一段时间与我Windows操作系统...在Linux中一切工作正常...非常感谢...无论如何,我会尝试解决它,并找到答案... – CocoOS 2012-02-24 01:26:00

+0

尝试创建一个新项目与'lein新测试'并运行'lein swank'那里。这是否有效?也许你有一个旧版本的'swank-clojure'躺在某个地方。 – liwp 2012-02-24 12:20:49

+0

我的lein install插件没有摆脱之前的问题plugin文件夹中有多个jar文件,当lein运行时,它包含所有存在的jar文件,并且首先列出旧版本。所以请检查旧罐子的$ HOME/.lein //插件 – libjack 2012-02-24 15:31:07