Skip to content

Loading…

Exception when invoking `jar` task with hooks turned on #127

Closed
kumarshantanu opened this Issue · 1 comment

2 participants

@kumarshantanu

I have the leiningen.cljsbuild hooks turned on in project.clj. Yet, when I run the jar task I get the following exception:

shantanu:~/projects/workspace/quiddity$ lein dev jar
Performing task 'jar' with profile(s): '1.4,jst'
Compiling ClojureScript.
Compiling "target/quiddity-test.js" from "test-cljs"...
Successfully compiled "target/quiddity-test.js" in 12.522687831 seconds.
Error encountered performing task 'jar' with profile(s): '1.4,jst'
clojure.lang.ArityException: Wrong number of args (3) passed to: cljsbuild$eval707$skip-if-prepping
    at clojure.lang.AFn.throwArity(AFn.java:437)
    at clojure.lang.RestFn.invoke(RestFn.java:448)
    at leiningen.cljsbuild$eval707$jar_hook__717.doInvoke(cljsbuild.clj:258)
    at clojure.lang.RestFn.invoke(RestFn.java:460)
    at clojure.lang.Var.invoke(Var.java:427)
    at clojure.lang.AFn.applyToHelper(AFn.java:172)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.core$apply.invoke(core.clj:603)
    at robert.hooke$compose_hooks$fn__588.doInvoke(hooke.clj:33)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:601)
    at robert.hooke$run_hooks.invoke(hooke.clj:39)
    at robert.hooke$prepare_for_hooks$fn__593$fn__594.doInvoke(hooke.clj:47)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
    at clojure.lang.RestFn.invoke(RestFn.java:436)
    at leiningen.jar$jar.invoke(jar.clj:134)
    at clojure.lang.Var.invoke(Var.java:415)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.core$apply.invoke(core.clj:603)
    at leiningen.core.main$resolve_task$fn__836.doInvoke(main.clj:123)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:603)
    at leiningen.core.main$apply_task.invoke(main.clj:146)
    at leiningen.with_profile$with_profile_STAR_.doInvoke(with_profile.clj:11)
    at clojure.lang.RestFn.invoke(RestFn.java:445)
    at clojure.lang.AFn.applyToHelper(AFn.java:167)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invoke(core.clj:607)
    at leiningen.with_profile$with_profile$fn__3011.invoke(with_profile.clj:28)
    at leiningen.with_profile$with_profile.doInvoke(with_profile.clj:25)
    at clojure.lang.RestFn.invoke(RestFn.java:445)
    at clojure.lang.Var.invoke(Var.java:423)
    at clojure.lang.AFn.applyToHelper(AFn.java:167)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.core$apply.invoke(core.clj:603)
    at leiningen.core.main$resolve_task$fn__836.doInvoke(main.clj:123)
    at clojure.lang.RestFn.applyTo(RestFn.java:139)
    at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:603)
    at leiningen.core.main$apply_task.invoke(main.clj:146)
    at leiningen.core.main$_main$fn__895.invoke(main.clj:223)
    at leiningen.core.main$_main.doInvoke(main.clj:208)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.core$apply.invoke(core.clj:601)
    at clojure.main$main_opt.invoke(main.clj:324)
    at clojure.main$main.doInvoke(main.clj:427)
    at clojure.lang.RestFn.invoke(RestFn.java:457)
    at clojure.lang.Var.invoke(Var.java:427)
    at clojure.lang.AFn.applyToHelper(AFn.java:172)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)

I am using lein-cljsbuild 0.2.6 on Lein2-preview10.

@emezeske
Owner

Hmm, that definitely looks like a bug. I probably goofed that up in my recent changes for compatibility with lein2. I should be able to take a look at it in the near future.

@emezeske emezeske closed this in ccf9f9e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.