Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crux and codox #192

Open
patrick-galvin opened this issue Aug 5, 2020 · 1 comment
Open

Crux and codox #192

patrick-galvin opened this issue Aug 5, 2020 · 1 comment

Comments

@patrick-galvin
Copy link

I ran into a problem running codox with the latest crux. I assumed it was something to do with the asm 7.1 dependency from rocksdb. I'm not very confident how good the fix is, but it does work for me

{:type java.lang.Exception,
    :message "Could not load codox writer codox.writer.html",
    :at [codox.main$writer$fn__747 invoke "main.clj" 16]}
   {:type clojure.lang.Compiler$CompilerException,
    :message "Syntax error macroexpanding def at (html.clj:66:1).",
    :data
    {:clojure.error/phase :execution,
     :clojure.error/line 66,
     :clojure.error/column 1,
     :clojure.error/source "html.clj",
     :clojure.error/symbol def},
    :at [clojure.lang.Compiler$DefExpr eval "Compiler.java" 470]}
   {:type java.lang.reflect.InvocationTargetException,
    :at
    [sun.reflect.NativeConstructorAccessorImpl
     newInstance0
     "NativeConstructorAccessorImpl.java"
     -2]}
   {:type java.lang.RuntimeException,
    :message "Error creating extended parser class: null",
    :at [org.parboiled.Parboiled createParser "Parboiled.java" 58]}

In the codox project.clj:

Remove

[org.ow2.asm/asm-all "5.0.3"]

Add

[org.parboiled/parboiled-java "1.3.0"]
@dcarley
Copy link

dcarley commented Nov 18, 2020

I experienced the same problem in a project that uses :managed-dependencies from a shared lein-parent project with the following:

   [org.ow2.asm/asm "7.0"]
   [org.ow2.asm/asm-analysis "7.0"]
   [org.ow2.asm/asm-commons "7.0"]
   [org.ow2.asm/asm-tree "7.0"]
   [org.ow2.asm/asm-util "7.0"]

Excluding asm-all and downgrading parboiled-java didn't work for me. Pinning them within a profile did though:

  :aliases {"docs" ["with-profile" "docs" "codox"]}
  :profiles {:docs {:plugins              [[lein-codox "0.10.7"]]
                    :managed-dependencies [[org.ow2.asm/asm-analysis "5.0.3"]
                                           [org.ow2.asm/asm-tree "5.0.3"]
                                           [org.ow2.asm/asm-util "5.0.3"]
                                           [org.ow2.asm/asm "5.0.3"]]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants