emacs slime-connect version of clojure doesn't lookup the $CLASSPATH

时光总嘲笑我的痴心妄想 提交于 2019-12-12 17:16:09

问题


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

回答1:


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



来源:https://stackoverflow.com/questions/3379418/emacs-slime-connect-version-of-clojure-doesnt-lookup-the-classpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!