我正在使用InteliJ的想法来开发我的应用程序,在我将[lein-environ "1.0.1"]插件添加到我的project.clj之前,这个应用程序就像预期的那样工作。
但是,如果我使用lein运行我的应用程序
Could not locate lein_environ/plugin__init.class or lein_environ/plugin.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.我的“project.clj”内容:
defproject some-project "1.0.0"
:description "Some random description"
:license {:name "FILLER DATA"}
:dependencies [[org.clojure/clojure "1.7.0"]
[environ "1.0.1"]
[stencil "0.5.0"]
[clj-http "2.0.0"]
[clj-ssh "0.5.11"]
[cheshire "5.5.0"]
[clj-time "0.11.0"]
[amazonica "0.3.33"]
[expectations "2.0.9"]
[im.chit/cronj "1.4.1"]
[dk.ative/docjure "1.9.0"]
[com.draines/postal "1.11.3"]
[org.clojure/data.csv "0.1.3"]
[org.clojure/java.jdbc "0.4.1"]
[...]]
:plugins [[lein-environ "1.0.1"]
[lein-expectations "0.0.8"]]
:resource-paths ["resources" "jobs"]
:profiles {:repl {:env {:in-repl? true}}}
:main source-file.core)但是,如果我将[lein-environ "1.0.1"]从调试爬虫启动的插件中删除并按预期运行,则需要插件才能从我的profiles.clj中生成.lein-env。
你知道是什么导致了这个问题吗?我试过从~/.m2/path/to/lein-environ中移除周围环境,但没有运气。
发布于 2015-10-23 23:12:43
这是最近版本的草书中的一个bug。如果你升级了,它应该是固定的。
https://stackoverflow.com/questions/33300612
复制相似问题