Closed middlesphere closed 6 years ago
Thanks! I’ll take a look
Sorry, can’t reproduce. I’ve bumped clojure and clojure-future-spec versions in 0.2.3 though
Hi folks,
Just for the record. I ran into this problem not too long ago and found the root cause in my ~/.lein/profiles.clj
file. Cleaning it of obsolete plugins and dependencies (which were probably using old versions of Сlojure) helped me get rid of this nasty AOT issue.
Nikita, hello!
If I use tongue and spec.alpha "0.1.123" everything works fine. But, if I use tongue with spec.alpha "0.1.134" then I got Exception below.
My project.clj is:
My core.clj is:
My dictionaries.clj is:
So, stacktrace is:
~/IdeaProjects/test01 $ java -jar /Users/mike/IdeaProjects/test01/target/test01-0.0.1-SNAPSHOT-standalone.jar Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at clojure.lang.RT.classForName(RT.java:2204) at clojure.lang.RT.classForName(RT.java:2213) at clojure.lang.RT.loadClassForName(RT.java:2232) at clojure.lang.RT.load(RT.java:450) at clojure.lang.RT.load(RT.java:426) at clojure.core$load$fn6550.invoke(core.clj:6051) at clojure.core$load.invokeStatic(core.clj:6050) at clojure.core$load.doInvoke(core.clj:6034) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invokeStatic(core.clj:5853) at clojure.core$load_one.invoke(core.clj:5848) at clojure.core$load_lib$fn6495.invoke(core.clj:5893) at clojure.core$load_lib.invokeStatic(core.clj:5892) at clojure.core$load_lib.doInvoke(core.clj:5873) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invokeStatic(core.clj:659) at clojure.core$load_libs.invokeStatic(core.clj:5930) at clojure.core$load_libs.doInvoke(core.clj:5914) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invokeStatic(core.clj:659) at clojure.core$require.invokeStatic(core.clj:5952) at clojure.core$require.doInvoke(core.clj:5952) at clojure.lang.RestFn.invoke(RestFn.java:512) at tongue.core$loading6436auto__185.invoke(core.cljc:1) at tongue.coreinit.load(Unknown Source) at tongue.coreinit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.classForName(RT.java:2204)
at clojure.lang.RT.classForName(RT.java:2213)
at clojure.lang.RT.loadClassForName(RT.java:2232)
at clojure.lang.RT.load(RT.java:450)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn__6550.invoke(core.clj:6051)
at clojure.core$load.invokeStatic(core.clj:6050)
at clojure.core$load.doInvoke(core.clj:6034)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5853)
at clojure.core$load_one.invoke(core.clj:5848)
at clojure.core$load_lib$fn 6495.invoke(core.clj:5893)
at clojure.core$load_lib.invokeStatic(core.clj:5892)
at clojure.core$load_lib.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5930)
at clojure.core$load_libs.doInvoke(core.clj:5914)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5952)
at clojure.core$require.doInvoke(core.clj:5952)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at test01.dictionaries$loading6436auto__183.invoke(dictionaries.clj:1)
at test01.dictionariesinit.load(Unknown Source)
at test01.dictionariesinit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.classForName(RT.java:2204)
at clojure.lang.RT.classForName(RT.java:2213)
at clojure.lang.RT.loadClassForName(RT.java:2232)
at clojure.lang.RT.load(RT.java:450)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn 6550.invoke(core.clj:6051)
at clojure.core$load.invokeStatic(core.clj:6050)
at clojure.core$load.doInvoke(core.clj:6034)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5853)
at clojure.core$load_one.invoke(core.clj:5848)
at clojure.core$load_lib$fn6495.invoke(core.clj:5893)
at clojure.core$load_lib.invokeStatic(core.clj:5892)
at clojure.core$load_lib.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5930)
at clojure.core$load_libs.doInvoke(core.clj:5914)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5952)
at clojure.core$require.doInvoke(core.clj:5952)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at test01.core$loading6436auto__181.invoke(core.clj:1)
at test01.coreinit.load(Unknown Source)
at test01.coreinit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.classForName(RT.java:2204)
at clojure.lang.RT.classForName(RT.java:2213)
at clojure.lang.RT.loadClassForName(RT.java:2232)
at clojure.lang.RT.load(RT.java:450)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn6550.invoke(core.clj:6051)
at clojure.core$load.invokeStatic(core.clj:6050)
at clojure.core$load.doInvoke(core.clj:6034)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:381)
at clojure.lang.Util.loadWithClass(Util.java:250)
at test01.core.(Unknown Source)
Caused by: java.lang.Exception: No namespace: clojure.future, compiling:(clojure/core/specs/alpha.clj:1:1), compiling:(clojure/future.clj:1:1)
at clojure.lang.Compiler.checkSpecs(Compiler.java:6891)
at clojure.lang.Compiler.macroexpand1(Compiler.java:6907)
at clojure.lang.Compiler.macroexpand(Compiler.java:6972)
at clojure.lang.Compiler.eval(Compiler.java:7046)
at clojure.lang.Compiler.load(Compiler.java:7514)
at clojure.lang.RT.loadResourceScript(RT.java:379)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.load(RT.java:460)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn 6550.invoke(core.clj:6051)
at clojure.core$load.invokeStatic(core.clj:6050)
at clojure.core$load.doInvoke(core.clj:6034)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5853)
at clojure.core$load_one.invoke(core.clj:5848)
at clojure.core$load_lib$fn6495.invoke(core.clj:5893)
at clojure.core$load_lib.invokeStatic(core.clj:5892)
at clojure.core$load_lib.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5930)
at clojure.core$load_libs.doInvoke(core.clj:5914)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5952)
at clojure.core$require.doInvoke(core.clj:5952)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at tongue.inst$loading6436auto__187.invoke(inst.cljc:1)
at tongue.instinit.load(Unknown Source)
at tongue.instinit.(Unknown Source)
... 98 more
Caused by: java.lang.Exception: No namespace: clojure.future, compiling:(clojure/core/specs/alpha.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7526)
at clojure.lang.RT.loadResourceScript(RT.java:379)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.load(RT.java:460)
at clojure.lang.RT.load(RT.java:426)
at clojure.lang.Compiler.ensureMacroCheck(Compiler.java:6877)
at clojure.lang.Compiler.checkSpecs(Compiler.java:6889)
... 127 more
Caused by: java.lang.Exception: No namespace: clojure.future
at clojure.core$refer.invokeStatic(core.clj:4205)
at clojure.core$refer.doInvoke(core.clj:4188)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_lib.invokeStatic(core.clj:5911)
at clojure.core$load_lib.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5930)
at clojure.core$load_libs.doInvoke(core.clj:5914)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5952)
at clojure.core$require.doInvoke(core.clj:5952)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.core.specs.alpha$eval15$loading6436auto____16.invoke(alpha.clj:1)
at clojure.core.specs.alpha$eval15.invokeStatic(alpha.clj:1)
at clojure.core.specs.alpha$eval15.invoke(alpha.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7062)
at clojure.lang.Compiler.eval(Compiler.java:7051)
at clojure.lang.Compiler.load(Compiler.java:7514)
... 133 more