-
Notifications
You must be signed in to change notification settings - Fork 129
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
ns issue with clojure 1.9.0-alpha11 #369
Comments
I examined the error again and it seems the offending line is in the suchwow library: https://github.com/marick/suchwow/blob/master/src/such/sequences.clj I think it is due to require being used instead of :require. |
Duplicate issue: marick/suchwow#5 |
I will fix this tonight. I ask a favor. If - if - you agree with me that the following error message is unacceptably unhelpful in this age of Elixir and Elm, please respond to https://groups.google.com/forum/?hl=en#!topic/clojure/mIlKaOiujlo With respect to @puredanger (who is a better, more patient person than I am) the idea that "spec error messages are going to be increasingly common for all of us to see and understand and I think it is worth taking the time to slow down and actually read them" is just not going to fly these days. Although I am ~90% certain to abandon Clojure for Elixir+Elm, I still think the idea of Lisp is great. If you disagree, it would be appropriate to say that too.
|
News is not good.
Not that I'm bitter. |
Midje 1.9.0-alpha5 is compatible with Clojure 1.9-alpha11. |
I get an error with ns declaration in levels.clj with clojure 1.9, see below. Are others also having this issue? I've seen this discussion:
https://groups.google.com/forum/#!topic/clojure/mIlKaOiujlo
(ns ^{:doc "print levels"}
midje.emission.levels
(:require [commons.clojure.core :refer :all :exclude [any?]]
[midje.util.exceptions :refer [user-error]]))
CompilerException java.lang.IllegalArgumentException: Call to clojure.core/ns did not conform to spec:
In: [1] val: ((require [such.wrongness :as !])) fails at: [:args] predicate: (cat :docstring (? string?) :attr-map (? map?) :clauses :clojure.core.specs/ns-clauses), Extra input
:clojure.spec/args (such.sequences (require [such.wrongness :as !]))
, compiling:(such/sequences.clj:1:1)
I would love to be able to use Midje with Clojure 1.9!
Thanks!
Peter
peter.marklund@C02MM634F6T6 ~/src/versioned]$ lein test
Retrieving midje/midje/1.9.0-alpha4/midje-1.9.0-alpha4.pom from clojars
Retrieving marick/suchwow/5.2.1/suchwow-5.2.1.pom from clojars
Retrieving com/rpl/specter/0.11.2/specter-0.11.2.pom from clojars
Retrieving environ/environ/1.1.0/environ-1.1.0.pom from clojars
Retrieving marick/clojure-commons/2.0.4/clojure-commons-2.0.4.pom from clojars
Retrieving marick/structural-typing/2.0.3/structural-typing-2.0.3.pom from clojars
Retrieving marick/suchwow/5.1.2/suchwow-5.1.2.pom from clojars
Retrieving environ/environ/1.0.3/environ-1.0.3.pom from clojars
Retrieving defprecated/defprecated/0.1.3/defprecated-0.1.3.pom from clojars
Retrieving org/flatland/ordered/1.5.3/ordered-1.5.3.pom from clojars
Retrieving org/flatland/useful/0.9.0/useful-0.9.0.pom from clojars
Retrieving org/clojure/math.combinatorics/0.1.3/math.combinatorics-0.1.3.pom from central
Retrieving clj-time/clj-time/0.12.0/clj-time-0.12.0.pom from clojars
Retrieving joda-time/joda-time/2.9.3/joda-time-2.9.3.pom from central
Retrieving org/tcrawley/dynapath/0.2.4/dynapath-0.2.4.pom from central
Retrieving flare/flare/0.2.9/flare-0.2.9.pom from clojars
Retrieving org/tcrawley/dynapath/0.2.4/dynapath-0.2.4.jar from central
Retrieving org/clojure/math.combinatorics/0.1.3/math.combinatorics-0.1.3.jar from central
Retrieving midje/midje/1.9.0-alpha4/midje-1.9.0-alpha4.jar from clojars
Retrieving environ/environ/1.1.0/environ-1.1.0.jar from clojars
Retrieving marick/clojure-commons/2.0.4/clojure-commons-2.0.4.jar from clojars
Retrieving com/rpl/specter/0.11.2/specter-0.11.2.jar from clojars
Retrieving marick/suchwow/5.2.1/suchwow-5.2.1.jar from clojars
Retrieving defprecated/defprecated/0.1.3/defprecated-0.1.3.jar from clojars
Retrieving marick/structural-typing/2.0.3/structural-typing-2.0.3.jar from clojars
Retrieving org/flatland/ordered/1.5.3/ordered-1.5.3.jar from clojars
Retrieving flare/flare/0.2.9/flare-0.2.9.jar from clojars
Exception in thread "main" java.lang.IllegalArgumentException: Call to clojure.core/ns did not conform to spec:
In: [1] val: ((require [such.wrongness :as !])) fails at: [:args] predicate: (cat :docstring (? string?) :attr-map (? map?) :clauses :clojure.core.specs/ns-clauses), Extra input
:clojure.spec/args (such.sequences (require [such.wrongness :as !]))
, compiling:(such/sequences.clj:1:1)
at clojure.lang.Compiler.macroexpand1(Compiler.java:6795)
at clojure.lang.Compiler.macroexpand(Compiler.java:6861)
at clojure.lang.Compiler.eval(Compiler.java:6935)
at clojure.lang.Compiler.load(Compiler.java:7403)
at clojure.lang.RT.loadResourceScript(RT.java:374)
at clojure.lang.RT.loadResourceScript(RT.java:365)
at clojure.lang.RT.load(RT.java:455)
at clojure.lang.RT.load(RT.java:421)
at clojure.core$load$fn__7645.invoke(core.clj:6008)
at clojure.core$load.invokeStatic(core.clj:6007)
at clojure.core$load.doInvoke(core.clj:5991)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5812)
at clojure.core$load_one.invoke(core.clj:5807)
at clojure.core$load_lib$fn__7590.invoke(core.clj:5852)
at clojure.core$load_lib.invokeStatic(core.clj:5851)
at clojure.core$load_lib.doInvoke(core.clj:5832)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5889)
at clojure.core$load_libs.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5911)
at clojure.core$require.doInvoke(core.clj:5911)
at clojure.lang.RestFn.invoke(RestFn.java:2422)
at commons.clojure.core$eval127$loading__7531__auto____128.invoke(core.clj:1)
at commons.clojure.core$eval127.invokeStatic(core.clj:1)
at commons.clojure.core$eval127.invoke(core.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6951)
at clojure.lang.Compiler.eval(Compiler.java:6940)
at clojure.lang.Compiler.load(Compiler.java:7403)
at clojure.lang.RT.loadResourceScript(RT.java:374)
at clojure.lang.RT.loadResourceScript(RT.java:365)
at clojure.lang.RT.load(RT.java:455)
at clojure.lang.RT.load(RT.java:421)
at clojure.core$load$fn__7645.invoke(core.clj:6008)
at clojure.core$load.invokeStatic(core.clj:6007)
at clojure.core$load.doInvoke(core.clj:5991)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5812)
at clojure.core$load_one.invoke(core.clj:5807)
at clojure.core$load_lib$fn__7590.invoke(core.clj:5852)
at clojure.core$load_lib.invokeStatic(core.clj:5851)
at clojure.core$load_lib.doInvoke(core.clj:5832)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5889)
at clojure.core$load_libs.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5911)
at clojure.core$require.doInvoke(core.clj:5911)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at midje.emission.levels$eval119$loading__7531__auto____120.invoke(levels.clj:1)
at midje.emission.levels$eval119.invokeStatic(levels.clj:1)
at midje.emission.levels$eval119.invoke(levels.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6951)
at clojure.lang.Compiler.eval(Compiler.java:6940)
at clojure.lang.Compiler.load(Compiler.java:7403)
at clojure.lang.RT.loadResourceScript(RT.java:374)
at clojure.lang.RT.loadResourceScript(RT.java:365)
at clojure.lang.RT.load(RT.java:455)
at clojure.lang.RT.load(RT.java:421)
at clojure.core$load$fn__7645.invoke(core.clj:6008)
at clojure.core$load.invokeStatic(core.clj:6007)
at clojure.core$load.doInvoke(core.clj:5991)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5812)
at clojure.core$load_one.invoke(core.clj:5807)
at clojure.core$load_lib$fn__7590.invoke(core.clj:5852)
at clojure.core$load_lib.invokeStatic(core.clj:5851)
at clojure.core$load_lib.doInvoke(core.clj:5832)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5889)
at clojure.core$load_libs.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5911)
at clojure.core$require.doInvoke(core.clj:5911)
at clojure.lang.RestFn.invoke(RestFn.java:551)
at midje.config$eval111$loading__7531__auto____112.invoke(config.clj:1)
at midje.config$eval111.invokeStatic(config.clj:1)
at midje.config$eval111.invoke(config.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6951)
at clojure.lang.Compiler.eval(Compiler.java:6940)
at clojure.lang.Compiler.load(Compiler.java:7403)
at clojure.lang.RT.loadResourceScript(RT.java:374)
at clojure.lang.RT.loadResourceScript(RT.java:365)
at clojure.lang.RT.load(RT.java:455)
at clojure.lang.RT.load(RT.java:421)
at clojure.core$load$fn__7645.invoke(core.clj:6008)
at clojure.core$load.invokeStatic(core.clj:6007)
at clojure.core$load.doInvoke(core.clj:5991)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5812)
at clojure.core$load_one.invoke(core.clj:5807)
at clojure.core$load_lib$fn__7590.invoke(core.clj:5852)
at clojure.core$load_lib.invokeStatic(core.clj:5851)
at clojure.core$load_lib.doInvoke(core.clj:5832)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5889)
at clojure.core$load_libs.doInvoke(core.clj:5873)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5911)
at clojure.core$require.doInvoke(core.clj:5911)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at user$eval105.invokeStatic(form-init5007786572654991205.clj:1)
at user$eval105.invoke(form-init5007786572654991205.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6951)
at clojure.lang.Compiler.eval(Compiler.java:6940)
at clojure.lang.Compiler.eval(Compiler.java:6940)
at clojure.lang.Compiler.load(Compiler.java:7403)
at clojure.lang.Compiler.loadFile(Compiler.java:7341)
at clojure.main$load_script.invokeStatic(main.clj:276)
at clojure.main$init_opt.invokeStatic(main.clj:278)
at clojure.main$init_opt.invoke(main.clj:278)
at clojure.main$initialize.invokeStatic(main.clj:309)
at clojure.main$null_opt.invokeStatic(main.clj:343)
at clojure.main$null_opt.invoke(main.clj:340)
at clojure.main$main.invokeStatic(main.clj:422)
at clojure.main$main.doInvoke(main.clj:385)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:700)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Call to clojure.core/ns did not conform to spec:
In: [1] val: ((require [such.wrongness :as !])) fails at: [:args] predicate: (cat :docstring (? string?) :attr-map (? map?) :clauses :clojure.core.specs/ns-clauses), Extra input
:clojure.spec/args (such.sequences (require [such.wrongness :as !]))
Subprocess failed
The text was updated successfully, but these errors were encountered: