Re: Issue when moving to Clojure 1.10

2019-01-14 Thread Alex Miller
That file looks fine to me - can you post what libraries/classpath you're 
using? I can't repro this with 1.10.

On Monday, January 14, 2019 at 8:39:49 PM UTC-6, Didier wrote:
>
> When compiling with Clojure 1.10, I get the following error, which I did 
> not use to get on 1.7, 1.8 and 1.9:
>
> Exception in thread "main" Syntax error compiling at (com/org/
> namespace_test.clj:1:1).
>   at clojure.lang.Compiler.load(Compiler.java:7647)
>   at clojure.lang.RT.loadResourceScript(RT.java:381)
>   at clojure.lang.RT.loadResourceScript(RT.java:372)
>   at clojure.core$load$fn__6824.invoke(core.clj:6126)
>   at clojure.core$load.invokeStatic(core.clj:6125)
>   at clojure.core$load.doInvoke(core.clj:6109)
>   at clojure.lang.RestFn.invoke(RestFn.java:408)
>   at clojure.core$load_one.invokeStatic(core.clj:5908)
>   at clojure.core$load_one.invoke(core.clj:5903)
>   at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
>   at clojure.core$load_lib.invokeStatic(core.clj:5947)
>   at clojure.core$load_lib.doInvoke(core.clj:5928)
>   at clojure.lang.RestFn.applyTo(RestFn.java:142)
>   at clojure.core$apply.invokeStatic(core.clj:667)
>   at clojure.core$load_libs.invokeStatic(core.clj:5985)
>   at com.org.ant.clojure.test_runner$exec_tests.invoke(test_runner.clj:10)
>   at clojure.lang.RestFn.invoke(RestFn.java:397)
>   at clojure.lang.AFn.applyToHelper(AFn.java:152)
>   at clojure.lang.RestFn.applyTo(RestFn.java:132)
>   at com.org.ant.clojure.TestRunner.main(Unknown Source)
> Caused by: 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:2207)
>   at clojure.lang.RT.classForName(RT.java:2216)
>   at clojure.lang.RT.loadClassForName(RT.java:2235)
>   at clojure.lang.RT.load(RT.java:453)
>   at clojure.lang.RT.load(RT.java:428)
>   at clojure.lang.Compiler.ensureMacroCheck(Compiler.java:6957)
>   at clojure.lang.Compiler.checkSpecs(Compiler.java:6969)
>   at clojure.lang.Compiler.macroexpand1(Compiler.java:6987)
>   at clojure.lang.Compiler.macroexpand(Compiler.java:7074)
>   at clojure.lang.Compiler.eval(Compiler.java:7160)
>   at clojure.lang.Compiler.load(Compiler.java:7635)
>   ... 30 more
> Caused by: clojure.lang.ArityException: Wrong number of args (3) passed to
> : clojure.spec.alpha/amp-impl
>   at clojure.lang.AFn.throwArity(AFn.java:429)
>   at clojure.lang.AFn.invoke(AFn.java:40)
>   at clojure.core.specs.alpha$fn__47.invokeStatic(alpha.clj:107)
>   at clojure.core.specs.alpha$fn__47.invoke(alpha.clj:107)
>   at clojure.core.specs.alpha__init.load(Unknown Source)
>   at clojure.core.specs.alpha__init.(Unknown Source)
>   ... 43 more
>
>
> Anyone knows why?
>
> Here's the code at 1:1 :
>
> (ns com.org.namespace-test
>   (:require [clojure.test :as test :refer :all]
> [com.org.namespace :as namespace])
>   (:import [com.org.persistence Response]
>[com.org.encrypt Encrypter]))
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue when moving to Clojure 1.10

2019-01-14 Thread Didier
When compiling with Clojure 1.10, I get the following error, which I did 
not use to get on 1.7, 1.8 and 1.9:

Exception in thread "main" Syntax error compiling at (com/org/namespace_test
.clj:1:1).
  at clojure.lang.Compiler.load(Compiler.java:7647)
  at clojure.lang.RT.loadResourceScript(RT.java:381)
  at clojure.lang.RT.loadResourceScript(RT.java:372)
  at clojure.core$load$fn__6824.invoke(core.clj:6126)
  at clojure.core$load.invokeStatic(core.clj:6125)
  at clojure.core$load.doInvoke(core.clj:6109)
  at clojure.lang.RestFn.invoke(RestFn.java:408)
  at clojure.core$load_one.invokeStatic(core.clj:5908)
  at clojure.core$load_one.invoke(core.clj:5903)
  at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
  at clojure.core$load_lib.invokeStatic(core.clj:5947)
  at clojure.core$load_lib.doInvoke(core.clj:5928)
  at clojure.lang.RestFn.applyTo(RestFn.java:142)
  at clojure.core$apply.invokeStatic(core.clj:667)
  at clojure.core$load_libs.invokeStatic(core.clj:5985)
  at com.org.ant.clojure.test_runner$exec_tests.invoke(test_runner.clj:10)
  at clojure.lang.RestFn.invoke(RestFn.java:397)
  at clojure.lang.AFn.applyToHelper(AFn.java:152)
  at clojure.lang.RestFn.applyTo(RestFn.java:132)
  at com.org.ant.clojure.TestRunner.main(Unknown Source)
Caused by: 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:2207)
  at clojure.lang.RT.classForName(RT.java:2216)
  at clojure.lang.RT.loadClassForName(RT.java:2235)
  at clojure.lang.RT.load(RT.java:453)
  at clojure.lang.RT.load(RT.java:428)
  at clojure.lang.Compiler.ensureMacroCheck(Compiler.java:6957)
  at clojure.lang.Compiler.checkSpecs(Compiler.java:6969)
  at clojure.lang.Compiler.macroexpand1(Compiler.java:6987)
  at clojure.lang.Compiler.macroexpand(Compiler.java:7074)
  at clojure.lang.Compiler.eval(Compiler.java:7160)
  at clojure.lang.Compiler.load(Compiler.java:7635)
  ... 30 more
Caused by: clojure.lang.ArityException: Wrong number of args (3) passed to: 
clojure.spec.alpha/amp-impl
  at clojure.lang.AFn.throwArity(AFn.java:429)
  at clojure.lang.AFn.invoke(AFn.java:40)
  at clojure.core.specs.alpha$fn__47.invokeStatic(alpha.clj:107)
  at clojure.core.specs.alpha$fn__47.invoke(alpha.clj:107)
  at clojure.core.specs.alpha__init.load(Unknown Source)
  at clojure.core.specs.alpha__init.(Unknown Source)
  ... 43 more


Anyone knows why?

Here's the code at 1:1 :

(ns com.org.namespace-test
  (:require [clojure.test :as test :refer :all]
[com.org.namespace :as namespace])
  (:import [com.org.persistence Response]
   [com.org.encrypt Encrypter]))


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.