yogthos / lein-asset-minifier

Leiningen plugin for CSS/Js asset minifcation
Eclipse Public License 1.0
41 stars 7 forks source link

Broken for lein 2.9.1 #19

Closed komcrad closed 5 years ago

komcrad commented 5 years ago

I create a new project: lein new reagent test When I try to build lein do clean, uberjar I get a huge mess of complaints about something in leiningen.minify_assets.

0.2.7 error

``` Warning: implicit hook found: lein-environ.plugin/hooks Hooks are deprecated and will be removed in a future version. Error: problem requiring minify-assets.plugin/hooks hook clojure.lang.Compiler$CompilerException: Syntax error macroexpanding clojure.core/refer-clojure at (clojure/core/async.clj:9:1). #:clojure.error{:phase :macro-syntax-check, :line 9, :column 1, :source "clojure/core/async.clj", :symbol clojure.core/refer-clojure} at clojure.lang.Compiler.checkSpecs (Compiler.java:6971) clojure.lang.Compiler.macroexpand1 (Compiler.java:6987) clojure.lang.Compiler.analyzeSeq (Compiler.java:7092) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$BodyExpr$Parser.parse (Compiler.java:6118) clojure.lang.Compiler$TryExpr$Parser.parse (Compiler.java:2314) clojure.lang.Compiler.analyzeSeq (Compiler.java:7106) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$BodyExpr$Parser.parse (Compiler.java:6120) clojure.lang.Compiler$FnMethod.parse (Compiler.java:5467) clojure.lang.Compiler$FnExpr.parse (Compiler.java:4029) clojure.lang.Compiler.analyzeSeq (Compiler.java:7104) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyzeSeq (Compiler.java:7094) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$InvokeExpr.parse (Compiler.java:3820) clojure.lang.Compiler.analyzeSeq (Compiler.java:7108) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$BodyExpr$Parser.parse (Compiler.java:6120) clojure.lang.Compiler$FnMethod.parse (Compiler.java:5467) clojure.lang.Compiler$FnExpr.parse (Compiler.java:4029) clojure.lang.Compiler.analyzeSeq (Compiler.java:7104) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.eval (Compiler.java:7173) clojure.lang.Compiler.eval (Compiler.java:7165) clojure.lang.Compiler.load (Compiler.java:7635) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903) clojure.core$load_lib$fn__6765.invoke (core.clj:5948) clojure.core$load_lib.invokeStatic (core.clj:5947) clojure.core$load_lib.doInvoke (core.clj:5928) clojure.lang.RestFn.applyTo (RestFn.java:142) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$load_libs.invokeStatic (core.clj:5985) clojure.core$load_libs.doInvoke (core.clj:5969) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$require.invokeStatic (core.clj:6007) clojure.core$require.doInvoke (core.clj:6007) clojure.lang.RestFn.invoke (RestFn.java:482) leiningen.minify_assets$eval1119$loading__6706__auto____1120.invoke (minify_assets.clj:1) leiningen.minify_assets$eval1119.invokeStatic (minify_assets.clj:1) leiningen.minify_assets$eval1119.invoke (minify_assets.clj:1) clojure.lang.Compiler.eval (Compiler.java:7176) clojure.lang.Compiler.eval (Compiler.java:7165) clojure.lang.Compiler.load (Compiler.java:7635) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903) clojure.core$load_lib$fn__6765.invoke (core.clj:5948) clojure.core$load_lib.invokeStatic (core.clj:5947) clojure.core$load_lib.doInvoke (core.clj:5928) clojure.lang.RestFn.applyTo (RestFn.java:142) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$load_libs.invokeStatic (core.clj:5985) clojure.core$load_libs.doInvoke (core.clj:5969) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$require.invokeStatic (core.clj:6007) clojure.core$require.doInvoke (core.clj:6007) clojure.lang.RestFn.invoke (RestFn.java:436) minify_assets.plugin$eval1113$loading__6706__auto____1114.invoke (plugin.clj:1) minify_assets.plugin$eval1113.invokeStatic (plugin.clj:1) minify_assets.plugin$eval1113.invoke (plugin.clj:1) clojure.lang.Compiler.eval (Compiler.java:7176) clojure.lang.Compiler.eval (Compiler.java:7165) clojure.lang.Compiler.load (Compiler.java:7635) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903) clojure.core$load_lib$fn__6765.invoke (core.clj:5948) clojure.core$load_lib.invokeStatic (core.clj:5947) clojure.core$load_lib.doInvoke (core.clj:5928) clojure.lang.RestFn.applyTo (RestFn.java:142) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$load_libs.invokeStatic (core.clj:5985) clojure.core$load_libs.doInvoke (core.clj:5969) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$require.invokeStatic (core.clj:6007) clojure.core$require.doInvoke (core.clj:6007) clojure.lang.RestFn.invoke (RestFn.java:408) leiningen.core.utils$require_resolve.invokeStatic (utils.clj:102) leiningen.core.utils$require_resolve.invoke (utils.clj:95) leiningen.core.project$load_hook$fn__7212.invoke (project.clj:786) leiningen.core.project$load_hook.invokeStatic (project.clj:786) leiningen.core.project$load_hook.invoke (project.clj:785) leiningen.core.project$load_hooks.invokeStatic (project.clj:807) leiningen.core.project$load_hooks.doInvoke (project.clj:800) clojure.lang.RestFn.invoke (RestFn.java:410) leiningen.core.project$activate_middleware.invokeStatic (project.clj:846) leiningen.core.project$activate_middleware.invoke (project.clj:840) leiningen.core.project$set_profiles.invokeStatic (project.clj:929) leiningen.core.project$set_profiles.doInvoke (project.clj:922) clojure.lang.RestFn.invoke (RestFn.java:442) leiningen.core.project$merge_profiles.invokeStatic (project.clj:937) leiningen.core.project$merge_profiles.invoke (project.clj:931) leiningen.uberjar$uberjar.invokeStatic (uberjar.clj:163) leiningen.uberjar$uberjar.invoke (uberjar.clj:143) leiningen.uberjar$uberjar.invokeStatic (uberjar.clj:187) leiningen.uberjar$uberjar.invoke (uberjar.clj:143) clojure.lang.AFn.applyToHelper (AFn.java:154) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$partial_task$fn__6592.doInvoke (main.clj:284) clojure.lang.RestFn.invoke (RestFn.java:410) clojure.lang.AFn.applyToHelper (AFn.java:154) clojure.lang.RestFn.applyTo (RestFn.java:132) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$apply_task.invokeStatic (main.clj:334) leiningen.core.main$apply_task.invoke (main.clj:320) lein_environ.plugin$write_env_to_file.invokeStatic (plugin.clj:29) lein_environ.plugin$write_env_to_file.invoke (plugin.clj:27) clojure.lang.AFn.applyToHelper (AFn.java:165) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) robert.hooke$compose_hooks$fn__10419.doInvoke (hooke.clj:40) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:665) clojure.core$apply.invoke (core.clj:660) robert.hooke$run_hooks.invokeStatic (hooke.clj:46) robert.hooke$run_hooks.invoke (hooke.clj:45) robert.hooke$prepare_for_hooks$fn__10424$fn__10425.doInvoke (hooke.clj:54) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.invoke (RestFn.java:436) leiningen.core.main$resolve_and_apply.invokeStatic (main.clj:343) leiningen.core.main$resolve_and_apply.invoke (main.clj:336) leiningen.do$do.invokeStatic (do.clj:40) leiningen.do$do.doInvoke (do.clj:32) clojure.lang.RestFn.applyTo (RestFn.java:139) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$partial_task$fn__6592.doInvoke (main.clj:284) clojure.lang.RestFn.applyTo (RestFn.java:139) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$apply_task.invokeStatic (main.clj:334) leiningen.core.main$apply_task.invoke (main.clj:320) lein_environ.plugin$write_env_to_file.invokeStatic (plugin.clj:29) lein_environ.plugin$write_env_to_file.invoke (plugin.clj:27) clojure.lang.AFn.applyToHelper (AFn.java:165) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) robert.hooke$compose_hooks$fn__10419.doInvoke (hooke.clj:40) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:665) clojure.core$apply.invoke (core.clj:660) robert.hooke$run_hooks.invokeStatic (hooke.clj:46) robert.hooke$run_hooks.invoke (hooke.clj:45) robert.hooke$prepare_for_hooks$fn__10424$fn__10425.doInvoke (hooke.clj:54) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.invoke (RestFn.java:436) leiningen.core.main$resolve_and_apply.invokeStatic (main.clj:343) leiningen.core.main$resolve_and_apply.invoke (main.clj:336) leiningen.core.main$_main$fn__6681.invoke (main.clj:452) leiningen.core.main$_main.invokeStatic (main.clj:442) leiningen.core.main$_main.doInvoke (main.clj:439) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:665) clojure.main$main_opt.invokeStatic (main.clj:491) clojure.main$main_opt.invoke (main.clj:487) clojure.main$main.invokeStatic (main.clj:598) clojure.main$main.doInvoke (main.clj:561) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.Var.applyTo (Var.java:705) clojure.main.main (main.java:37) Caused by: clojure.lang.ExceptionInfo: Call to clojure.core/refer-clojure did not conform to spec. #:clojure.spec.alpha{:problems ({:path [:exclude :op :spec], :pred #{:exclude}, :val (quote :as), :via [], :in [2]} {:path [:exclude :op :quoted-spec :spec], :pred #{:exclude}, :val :as, :via [], :in [2 1]} {:path [:only :op :spec], :pred #{:only}, :val (quote :as), :via [], :in [2]} {:path [:only :op :quoted-spec :spec], :pred #{:only}, :val :as, :via [], :in [2 1]} {:path [:rename :op :spec], :pred #{:rename}, :val (quote :as), :via [], :in [2]} {:path [:rename :op :quoted-spec :spec], :pred #{:rename}, :val :as, :via [], :in [2 1]}), :spec #object[clojure.spec.alpha$regex_spec_impl$reify__2509 0x42b02722 "clojure.spec.alpha$regex_spec_impl$reify__2509@42b02722"], :value ((quote :exclude) (quote [reduce into merge map take partition partition-by]) (quote :as) (quote core)), :args ((quote :exclude) (quote [reduce into merge map take partition partition-by]) (quote :as) (quote core))} at clojure.spec.alpha$macroexpand_check.invokeStatic (alpha.clj:705) clojure.spec.alpha$macroexpand_check.invoke (alpha.clj:697) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.lang.Compiler.checkSpecs (Compiler.java:6969) clojure.lang.Compiler.macroexpand1 (Compiler.java:6987) clojure.lang.Compiler.analyzeSeq (Compiler.java:7092) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$BodyExpr$Parser.parse (Compiler.java:6118) clojure.lang.Compiler$TryExpr$Parser.parse (Compiler.java:2314) clojure.lang.Compiler.analyzeSeq (Compiler.java:7106) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$BodyExpr$Parser.parse (Compiler.java:6120) clojure.lang.Compiler$FnMethod.parse (Compiler.java:5467) clojure.lang.Compiler$FnExpr.parse (Compiler.java:4029) clojure.lang.Compiler.analyzeSeq (Compiler.java:7104) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyzeSeq (Compiler.java:7094) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$InvokeExpr.parse (Compiler.java:3820) clojure.lang.Compiler.analyzeSeq (Compiler.java:7108) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.analyze (Compiler.java:6745) clojure.lang.Compiler$BodyExpr$Parser.parse (Compiler.java:6120) clojure.lang.Compiler$FnMethod.parse (Compiler.java:5467) clojure.lang.Compiler$FnExpr.parse (Compiler.java:4029) clojure.lang.Compiler.analyzeSeq (Compiler.java:7104) clojure.lang.Compiler.analyze (Compiler.java:6789) clojure.lang.Compiler.eval (Compiler.java:7173) clojure.lang.Compiler.eval (Compiler.java:7165) clojure.lang.Compiler.load (Compiler.java:7635) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903) clojure.core$load_lib$fn__6765.invoke (core.clj:5948) clojure.core$load_lib.invokeStatic (core.clj:5947) clojure.core$load_lib.doInvoke (core.clj:5928) clojure.lang.RestFn.applyTo (RestFn.java:142) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$load_libs.invokeStatic (core.clj:5985) clojure.core$load_libs.doInvoke (core.clj:5969) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$require.invokeStatic (core.clj:6007) clojure.core$require.doInvoke (core.clj:6007) clojure.lang.RestFn.invoke (RestFn.java:482) leiningen.minify_assets$eval1119$loading__6706__auto____1120.invoke (minify_assets.clj:1) leiningen.minify_assets$eval1119.invokeStatic (minify_assets.clj:1) leiningen.minify_assets$eval1119.invoke (minify_assets.clj:1) clojure.lang.Compiler.eval (Compiler.java:7176) clojure.lang.Compiler.eval (Compiler.java:7165) clojure.lang.Compiler.load (Compiler.java:7635) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903) clojure.core$load_lib$fn__6765.invoke (core.clj:5948) clojure.core$load_lib.invokeStatic (core.clj:5947) clojure.core$load_lib.doInvoke (core.clj:5928) clojure.lang.RestFn.applyTo (RestFn.java:142) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$load_libs.invokeStatic (core.clj:5985) clojure.core$load_libs.doInvoke (core.clj:5969) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$require.invokeStatic (core.clj:6007) clojure.core$require.doInvoke (core.clj:6007) clojure.lang.RestFn.invoke (RestFn.java:436) minify_assets.plugin$eval1113$loading__6706__auto____1114.invoke (plugin.clj:1) minify_assets.plugin$eval1113.invokeStatic (plugin.clj:1) minify_assets.plugin$eval1113.invoke (plugin.clj:1) clojure.lang.Compiler.eval (Compiler.java:7176) clojure.lang.Compiler.eval (Compiler.java:7165) clojure.lang.Compiler.load (Compiler.java:7635) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903) clojure.core$load_lib$fn__6765.invoke (core.clj:5948) clojure.core$load_lib.invokeStatic (core.clj:5947) clojure.core$load_lib.doInvoke (core.clj:5928) clojure.lang.RestFn.applyTo (RestFn.java:142) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$load_libs.invokeStatic (core.clj:5985) clojure.core$load_libs.doInvoke (core.clj:5969) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$require.invokeStatic (core.clj:6007) clojure.core$require.doInvoke (core.clj:6007) clojure.lang.RestFn.invoke (RestFn.java:408) leiningen.core.utils$require_resolve.invokeStatic (utils.clj:102) leiningen.core.utils$require_resolve.invoke (utils.clj:95) leiningen.core.project$load_hook$fn__7212.invoke (project.clj:786) leiningen.core.project$load_hook.invokeStatic (project.clj:786) leiningen.core.project$load_hook.invoke (project.clj:785) leiningen.core.project$load_hooks.invokeStatic (project.clj:807) leiningen.core.project$load_hooks.doInvoke (project.clj:800) clojure.lang.RestFn.invoke (RestFn.java:410) leiningen.core.project$activate_middleware.invokeStatic (project.clj:846) leiningen.core.project$activate_middleware.invoke (project.clj:840) leiningen.core.project$set_profiles.invokeStatic (project.clj:929) leiningen.core.project$set_profiles.doInvoke (project.clj:922) clojure.lang.RestFn.invoke (RestFn.java:442) leiningen.core.project$merge_profiles.invokeStatic (project.clj:937) leiningen.core.project$merge_profiles.invoke (project.clj:931) leiningen.uberjar$uberjar.invokeStatic (uberjar.clj:163) leiningen.uberjar$uberjar.invoke (uberjar.clj:143) leiningen.uberjar$uberjar.invokeStatic (uberjar.clj:187) leiningen.uberjar$uberjar.invoke (uberjar.clj:143) clojure.lang.AFn.applyToHelper (AFn.java:154) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$partial_task$fn__6592.doInvoke (main.clj:284) clojure.lang.RestFn.invoke (RestFn.java:410) clojure.lang.AFn.applyToHelper (AFn.java:154) clojure.lang.RestFn.applyTo (RestFn.java:132) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$apply_task.invokeStatic (main.clj:334) leiningen.core.main$apply_task.invoke (main.clj:320) lein_environ.plugin$write_env_to_file.invokeStatic (plugin.clj:29) lein_environ.plugin$write_env_to_file.invoke (plugin.clj:27) clojure.lang.AFn.applyToHelper (AFn.java:165) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) robert.hooke$compose_hooks$fn__10419.doInvoke (hooke.clj:40) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:665) clojure.core$apply.invoke (core.clj:660) robert.hooke$run_hooks.invokeStatic (hooke.clj:46) robert.hooke$run_hooks.invoke (hooke.clj:45) robert.hooke$prepare_for_hooks$fn__10424$fn__10425.doInvoke (hooke.clj:54) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.invoke (RestFn.java:436) leiningen.core.main$resolve_and_apply.invokeStatic (main.clj:343) leiningen.core.main$resolve_and_apply.invoke (main.clj:336) leiningen.do$do.invokeStatic (do.clj:40) leiningen.do$do.doInvoke (do.clj:32) clojure.lang.RestFn.applyTo (RestFn.java:139) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$partial_task$fn__6592.doInvoke (main.clj:284) clojure.lang.RestFn.applyTo (RestFn.java:139) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) leiningen.core.main$apply_task.invokeStatic (main.clj:334) leiningen.core.main$apply_task.invoke (main.clj:320) lein_environ.plugin$write_env_to_file.invokeStatic (plugin.clj:29) lein_environ.plugin$write_env_to_file.invoke (plugin.clj:27) clojure.lang.AFn.applyToHelper (AFn.java:165) clojure.lang.AFn.applyTo (AFn.java:144) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:667) clojure.core$apply.invoke (core.clj:660) robert.hooke$compose_hooks$fn__10419.doInvoke (hooke.clj:40) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:665) clojure.core$apply.invoke (core.clj:660) robert.hooke$run_hooks.invokeStatic (hooke.clj:46) robert.hooke$run_hooks.invoke (hooke.clj:45) robert.hooke$prepare_for_hooks$fn__10424$fn__10425.doInvoke (hooke.clj:54) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.AFunction$1.doInvoke (AFunction.java:31) clojure.lang.RestFn.invoke (RestFn.java:436) leiningen.core.main$resolve_and_apply.invokeStatic (main.clj:343) leiningen.core.main$resolve_and_apply.invoke (main.clj:336) leiningen.core.main$_main$fn__6681.invoke (main.clj:452) leiningen.core.main$_main.invokeStatic (main.clj:442) leiningen.core.main$_main.doInvoke (main.clj:439) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.Var.applyTo (Var.java:705) clojure.core$apply.invokeStatic (core.clj:665) clojure.main$main_opt.invokeStatic (main.clj:491) clojure.main$main_opt.invoke (main.clj:487) clojure.main$main.invokeStatic (main.clj:598) clojure.main$main.doInvoke (main.clj:561) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.lang.Var.applyTo (Var.java:705) clojure.main.main (main.java:37) ```


I figured I'd try updating to your version 0.4.5. Now the stack trace looks like this:

0.4.5 error

``` Warning: implicit hook found: lein-environ.plugin/hooks Hooks are deprecated and will be removed in a future version. Warning: implicit hook found: minify-assets.plugin/hooks Hooks are deprecated and will be removed in a future version. Compiling test.handler Compiling test.middleware Compiling test.server 2019-02-28 19:00:39.674:INFO::main: Logging initialized @3213ms to org.eclipse.jetty.util.log.StdErrLog Compiling test.util minifying assets... Uberjar aborting because jar failed: nil ```


I'm not sure if this is the right project to submit this issue to but it looks like it is. It might just be lein's fault.

yogthos commented 5 years ago

It looks like a bug in one of the dependencies, I've updated the dependencies to the latest and pushed out version 0.4.6 to Clojars. I'm not seeing the problem locally with it, let me know if it works on your end as well.

komcrad commented 5 years ago

Still having an issue. I could build a vagrant box that can reproduce the issue if that would help.

yogthos commented 5 years ago

Sure, can't hurt to try it in a fresh environment.

aluminick commented 5 years ago

same issue

yogthos commented 5 years ago

Could you make a minimal sample project I could take a look at?

komcrad commented 5 years ago

Vagrantfile.zip Preferably you'll want to be using virtuabox 5.2 instead of 6 because of hardware acceleration issues. Here's my vagrant file. Should just be able to extract that inside an empty folder and run vagrant up In the VM, lein -version should give you Leiningen 2.8.1 on Java 1.8.0_202 OpenJDK 64-Bit Server VM lein new reagent hello-world Go into the project and run lein do clean, uberjar and it should build just fine.

Now if we upgrade lein, sudo lein upgrade everything falls apart when we run lein do clean, uberjar.

If we try upgrading lein-asset-minifier to 0.4.6, and run lein do clean, uberjar, we have a different issue.

yogthos commented 5 years ago

Thanks, but could you also give a link to a github repo with a project illustrating the issue?

komcrad commented 5 years ago

https://github.com/komcrad/reagent-demo

If you have lein 2.8.1 that project builds fine. But on 2.9.1 it's broken.

yogthos commented 5 years ago

Here is a minimal project using the asset minifier, and it runs with 2.9.1. It looks like your project has some dependency that doesn't pass spec validation with the latest Clojure compiler causing the exception you're seeing, and it's not related to this library.

kengruven commented 5 years ago

Could this have been caused by reagent-project/reagent-template#160 (which was just fixed)?

yogthos commented 5 years ago

Yeah definitely, the template was using a very old version of the plugin.

komcrad commented 5 years ago

I'll check on this tomorrow. Thanks for the support!

yogthos commented 5 years ago

👍

komcrad commented 5 years ago

Looks like my issue has been resolved. Thanks for the work @yogthos