本文介绍了emacs slime-connect版本的clojure不会查找$ CLASSPATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用我的clojure功能与粘连。我把所有的lib都放在$ CLASSPATH中。



从。我使用以下命令检查当前环境的CLASSPATH,我发现没有使用我的$ CLASSPATH。



如何使用emacs / slime-connect将我的clojure的课程路径附加?
我按照问题安装了我的emacs / leinigen,并回答了。

 (doseq [p(.getURLs(java.lang.ClassLoader / getSystemClassLoader))](println(.getPath p)))



 
/用户/ smcho / bin / leiningen / src /
/ Users / smcho / bin / leiningen / test /
/ Users / smcho / bin / leiningen / classes /
...
/Users/smcho/bin/leiningen/lib/dev/swank-clojure-1.2.1.jar


解决方案

lein提供在其依赖项中指定的库。所以,最好在project.clj中指定所有需要的库,并重新运行lein swank命令


I need to use my clojure functions with slime-connect. And I put all my libs in the $CLASSPATH.

As I learned from this question. I used the following command to check the CLASSPATH for current environment, and I found none of my $CLASSPATH is used.

How can I attach my class path for my clojure with emacs/slime-connect?I installed my emacs/leinigen as asked and answered here.

(doseq [p (.getURLs (java.lang.ClassLoader/getSystemClassLoader))] (println (.getPath p)))
/Users/smcho/bin/leiningen/src/
/Users/smcho/bin/leiningen/test/
/Users/smcho/bin/leiningen/classes/
...
/Users/smcho/bin/leiningen/lib/dev/swank-clojure-1.2.1.jar
解决方案

lein provides that libraries, that are specified in its dependencies. So, it's better to specify all needed libraries in project.clj, and re-run lein swank command

这篇关于emacs slime-connect版本的clojure不会查找$ CLASSPATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 23:36