【问题标题】:Leiningen Crash with Autodoc (sh does not exist)Leiningen Crash with Autodoc (sh 不存在)
【发布时间】:2014-10-12 06:49:37
【问题描述】:

我正在尝试在我的项目中使用 Clojure 自动文档。我的 project.clj 看起来像这样:

:license {:name "Eclipse Public License"
        :url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]]
:plugins [[lein-autodoc "0.9.0"]])

当我执行lein autodoc 时,出现此错误

clojure.lang.Compiler$CompilerException: java.lang.IllegalAccessError: sh does not exist, compiling:(leiningen/autodoc.clj:1:1)

我确实有二进制 sh

$ which sh
/bin/sh

我该如何解决这个问题?

【问题讨论】:

    标签: clojure leiningen autodoc


    【解决方案1】:

    lein-autodoc 不适用于 leiningen 2.X。你看到的错误信息来自this line:

    [leiningen.compile :only [sh]] ; in 2.0 this moves to leiningen.eval
    

    显然这与 /bin/sh 无关。

    您可能想查看Codox。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-09
      • 2020-06-22
      • 2020-07-30
      • 2020-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多