marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.69k stars 129 forks source link

Midje setup not working #470

Closed lipemorais closed 4 years ago

lipemorais commented 4 years ago

I'm using the most recent versions of midje(1.7.0) and lein-midje (3.2.2).

sample project: https://github.com/lipemorais/pedestal-todo-list

All the configuration are inside my project.clj:

(defproject pedestal-todo-list "0.0.1-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url  "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.10.1"]
                 [io.pedestal/pedestal.service "0.5.8"]

                 ;; Remove this line and uncomment one of the next lines to
                 ;; use Immutant or Tomcat instead of Jetty:
                 [io.pedestal/pedestal.jetty "0.5.8"]
                 ;; [io.pedestal/pedestal.immutant "0.5.8"]
                 ;; [io.pedestal/pedestal.tomcat "0.5.8"]

                 [ch.qos.logback/logback-classic "1.2.3" :exclusions [org.slf4j/slf4j-api]]
                 [org.slf4j/jul-to-slf4j "1.7.26"]
                 [org.slf4j/jcl-over-slf4j "1.7.26"]
                 [org.slf4j/log4j-over-slf4j "1.7.26"]]

  :min-lein-version "2.0.0"
  :resource-paths ["config", "resources"]
  ;; If you use HTTP/2 or ALPN, use the java-agent to pull in the correct alpn-boot dependency
  ;:java-agents [[org.mortbay.jetty.alpn/jetty-alpn-agent "2.0.5"]]

  :profiles {:dev     {:aliases      {"run-dev" ["trampoline" "run" "-m" "pedestal-todo-list.server/run-dev"]}
                       :dependencies [[midje "1.7.0"]
                                      [io.pedestal/pedestal.service-tools "0.5.8"]]
                       :plugins [[lein-midje "3.2.2"]]}

             :uberjar {:aot [pedestal-todo-list.server]}}
  :main ^{:skip-aot true} pedestal-todo-list.server)

When I try to run lein midje I get a big error:

➜  pedestal-todo-list lein midje
:repositories detected in user-level profiles! [:user] 
See https://github.com/technomancy/leiningen/wiki/Repeatability
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.clojure.core, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.config, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.levels, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.util.pile, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.repl, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.api, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.plugins.util, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.plugins.default-failure-lines, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.util.core, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.data.nested-facts, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.1-to-explicit-form.metadata, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.util.recognizing, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.sweet, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.doc, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkables, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.core, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.data.prerequisite-state, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.2-to-lexical-maps.fakes, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.util.fnref, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.util.error-handling, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.lexical-maps, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.3-from-lexical-maps.from-fake-maps, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checkers, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkers.chatty, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkers.util, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkers.simple, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkers.collection, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkers.collection-util, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.checking.checkers.collection-comparison, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.util.laziness, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.1-to-explicit-form.parse-background, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.2-to-lexical-maps.data-fakes, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.parsing.2-to-lexical-maps.expects, being replaced by: #'midje.clojure.core/any?
Syntax error macroexpanding clojure.core/fn at (clojure/core/unify.clj:82:18).
clojure.core.unify/var-unify - failed: vector? at: [:fn-tail :arity-1 :params] spec: :clojure.core.specs.alpha/param-list
clojure.core.unify/var-unify - failed: (or (nil? %) (sequential? %)) at: [:fn-tail :arity-n] spec: :clojure.core.specs.alpha/params+body

Full report at:
/var/folders/jf/s6ny_th13zdcf3sf31svvbdh0000gn/T/clojure-4617028869164840156.edn
Subprocess failed (exit code: 1)

The content of /var/folders/jf/s6ny_th13zdcf3sf31svvbdh0000gn/T/clojure-4617028869164840156.edn is:

{:clojure.main/message
 "Syntax error macroexpanding clojure.core/fn at (clojure/core/unify.clj:82:18).\nclojure.core.unify/var-unify - failed: vector? at: [:fn-tail :arity-1 :params] spec: :clojure.core.specs.alpha/param-list\nclojure.core.unify/var-unify - failed: (or (nil? %) (sequential? %)) at: [:fn-tail :arity-n] spec: :clojure.core.specs.alpha/params+body\n",
 :clojure.main/triage
 {:clojure.error/cause
  "Call to clojure.core/fn did not conform to spec.",
  :clojure.error/phase :macro-syntax-check,
  :clojure.error/symbol clojure.core/fn,
  :clojure.error/column 18,
  :clojure.error/line 82,
  :clojure.error/class clojure.lang.ExceptionInfo,
  :clojure.error/source "unify.clj",
  :clojure.error/spec
  {:clojure.spec.alpha/problems
   ({:path [:fn-tail :arity-1 :params],
     :pred clojure.core/vector?,
     :val clojure.core.unify/var-unify,
     :via
     [:clojure.core.specs.alpha/params+body
      :clojure.core.specs.alpha/param-list
      :clojure.core.specs.alpha/param-list],
     :in [0]}
    {:path [:fn-tail :arity-n],
     :pred
     (clojure.core/fn
      [%]
      (clojure.core/or
       (clojure.core/nil? %)
       (clojure.core/sequential? %))),
     :val clojure.core.unify/var-unify,
     :via
     [:clojure.core.specs.alpha/params+body
      :clojure.core.specs.alpha/params+body],
     :in [0]}),
   :clojure.spec.alpha/spec
   #object[clojure.spec.alpha$regex_spec_impl$reify__2509 0x1ea930eb "clojure.spec.alpha$regex_spec_impl$reify__2509@1ea930eb"],
   :clojure.spec.alpha/value
   (clojure.core.unify/var-unify
    [varp v expr binds]
    (clojure.core/if-let
     [vb__4523__auto__ (binds v)]
     (clojure.core.unify/garner-unifiers
      varp
      vb__4523__auto__
      expr
      binds)
     (clojure.core/if-let
      [vexpr__4524__auto__ (clojure.core/and (varp expr) (binds expr))]
      (clojure.core.unify/garner-unifiers
       varp
       v
       vexpr__4524__auto__
       binds)
      (if
       (clojure.core.unify/occurs? varp v expr binds)
       (throw
        (java.lang.IllegalStateException.
         (clojure.core/str "Cycle found in the path " expr)))
       (clojure.core.unify/bind-phase binds v expr))))),
   :clojure.spec.alpha/args
   (clojure.core.unify/var-unify
    [varp v expr binds]
    (clojure.core/if-let
     [vb__4523__auto__ (binds v)]
     (clojure.core.unify/garner-unifiers
      varp
      vb__4523__auto__
      expr
      binds)
     (clojure.core/if-let
      [vexpr__4524__auto__ (clojure.core/and (varp expr) (binds expr))]
      (clojure.core.unify/garner-unifiers
       varp
       v
       vexpr__4524__auto__
       binds)
      (if
       (clojure.core.unify/occurs? varp v expr binds)
       (throw
        (java.lang.IllegalStateException.
         (clojure.core/str "Cycle found in the path " expr)))
       (clojure.core.unify/bind-phase binds v expr)))))},
  :clojure.error/path "clojure/core/unify.clj"},
 :clojure.main/trace
 {:via
  [{:type clojure.lang.Compiler$CompilerException,
    :message
    "Syntax error macroexpanding clojure.core/fn at (clojure/core/unify.clj:82:18).",
    :data
    {:clojure.error/phase :macro-syntax-check,
     :clojure.error/line 82,
     :clojure.error/column 18,
     :clojure.error/source "clojure/core/unify.clj",
     :clojure.error/symbol clojure.core/fn},
    :at [clojure.lang.Compiler checkSpecs "Compiler.java" 6972]}
   {:type clojure.lang.ExceptionInfo,
    :message "Call to clojure.core/fn did not conform to spec.",
    :data
    {:clojure.spec.alpha/problems
     ({:path [:fn-tail :arity-1 :params],
       :pred clojure.core/vector?,
       :val clojure.core.unify/var-unify,
       :via
       [:clojure.core.specs.alpha/params+body
        :clojure.core.specs.alpha/param-list
        :clojure.core.specs.alpha/param-list],
       :in [0]}
      {:path [:fn-tail :arity-n],
       :pred
       (clojure.core/fn
        [%]
        (clojure.core/or
         (clojure.core/nil? %)
         (clojure.core/sequential? %))),
       :val clojure.core.unify/var-unify,
       :via
       [:clojure.core.specs.alpha/params+body
        :clojure.core.specs.alpha/params+body],
       :in [0]}),
     :clojure.spec.alpha/spec
     #object[clojure.spec.alpha$regex_spec_impl$reify__2509 0x1ea930eb "clojure.spec.alpha$regex_spec_impl$reify__2509@1ea930eb"],
     :clojure.spec.alpha/value
     (clojure.core.unify/var-unify
      [varp v expr binds]
      (clojure.core/if-let
       [vb__4523__auto__ (binds v)]
       (clojure.core.unify/garner-unifiers
        varp
        vb__4523__auto__
        expr
        binds)
       (clojure.core/if-let
        [vexpr__4524__auto__
         (clojure.core/and (varp expr) (binds expr))]
        (clojure.core.unify/garner-unifiers
         varp
         v
         vexpr__4524__auto__
         binds)
        (if
         (clojure.core.unify/occurs? varp v expr binds)
         (throw
          (java.lang.IllegalStateException.
           (clojure.core/str "Cycle found in the path " expr)))
         (clojure.core.unify/bind-phase binds v expr))))),
     :clojure.spec.alpha/args
     (clojure.core.unify/var-unify
      [varp v expr binds]
      (clojure.core/if-let
       [vb__4523__auto__ (binds v)]
       (clojure.core.unify/garner-unifiers
        varp
        vb__4523__auto__
        expr
        binds)
       (clojure.core/if-let
        [vexpr__4524__auto__
         (clojure.core/and (varp expr) (binds expr))]
        (clojure.core.unify/garner-unifiers
         varp
         v
         vexpr__4524__auto__
         binds)
        (if
         (clojure.core.unify/occurs? varp v expr binds)
         (throw
          (java.lang.IllegalStateException.
           (clojure.core/str "Cycle found in the path " expr)))
         (clojure.core.unify/bind-phase binds v expr)))))},
    :at
    [clojure.spec.alpha$macroexpand_check
     invokeStatic
     "alpha.clj"
     705]}],
  :trace
  [[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" 6970]
   [clojure.lang.Compiler macroexpand1 "Compiler.java" 6988]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7093]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7095]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler access$300 "Compiler.java" 38]
   [clojure.lang.Compiler$DefExpr$Parser parse "Compiler.java" 596]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7107]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler eval "Compiler.java" 7181]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 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__6780 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]
   [midje.util.unify$eval4487$loading__6721__auto____4488
    invoke
    "unify.clj"
    1]
   [midje.util.unify$eval4487 invokeStatic "unify.clj" 1]
   [midje.util.unify$eval4487 invoke "unify.clj" 1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 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__6780 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" 805]
   [midje.parsing.1_to_explicit_form.parse_background$eval4350$loading__6721__auto____4351
    invoke
    "parse_background.clj"
    1]
   [midje.parsing.1_to_explicit_form.parse_background$eval4350
    invokeStatic
    "parse_background.clj"
    1]
   [midje.parsing.1_to_explicit_form.parse_background$eval4350
    invoke
    "parse_background.clj"
    1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 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__6780 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]
   [midje.checking.checkables$eval2537$loading__6721__auto____2538
    invoke
    "checkables.clj"
    1]
   [midje.checking.checkables$eval2537 invokeStatic "checkables.clj" 1]
   [midje.checking.checkables$eval2537 invoke "checkables.clj" 1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 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__6780 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]
   [midje.sweet$eval2111$loading__6721__auto____2112
    invoke
    "sweet.clj"
    4]
   [midje.sweet$eval2111 invokeStatic "sweet.clj" 4]
   [midje.sweet$eval2111 invoke "sweet.clj" 4]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 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__6780 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" 2088]
   [midje.repl$eval979$loading__6721__auto____980 invoke "repl.clj" 1]
   [midje.repl$eval979 invokeStatic "repl.clj" 1]
   [midje.repl$eval979 invoke "repl.clj" 1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 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__6780 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]
   [user$eval973 invokeStatic "form-init3253030914936233806.clj" 1]
   [user$eval973 invoke "form-init3253030914936233806.clj" 1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7167]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.Compiler loadFile "Compiler.java" 7574]
   [clojure.main$load_script invokeStatic "main.clj" 475]
   [clojure.main$init_opt invokeStatic "main.clj" 477]
   [clojure.main$init_opt invoke "main.clj" 477]
   [clojure.main$initialize invokeStatic "main.clj" 508]
   [clojure.main$null_opt invokeStatic "main.clj" 542]
   [clojure.main$null_opt invoke "main.clj" 539]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.main main "main.java" 40]],
  :cause "Call to clojure.core/fn did not conform to spec.",
  :data
  {:clojure.spec.alpha/problems
   ({:path [:fn-tail :arity-1 :params],
     :pred clojure.core/vector?,
     :val clojure.core.unify/var-unify,
     :via
     [:clojure.core.specs.alpha/params+body
      :clojure.core.specs.alpha/param-list
      :clojure.core.specs.alpha/param-list],
     :in [0]}
    {:path [:fn-tail :arity-n],
     :pred
     (clojure.core/fn
      [%]
      (clojure.core/or
       (clojure.core/nil? %)
       (clojure.core/sequential? %))),
     :val clojure.core.unify/var-unify,
     :via
     [:clojure.core.specs.alpha/params+body
      :clojure.core.specs.alpha/params+body],
     :in [0]}),
   :clojure.spec.alpha/spec
   #object[clojure.spec.alpha$regex_spec_impl$reify__2509 0x1ea930eb "clojure.spec.alpha$regex_spec_impl$reify__2509@1ea930eb"],
   :clojure.spec.alpha/value
   (clojure.core.unify/var-unify
    [varp v expr binds]
    (clojure.core/if-let
     [vb__4523__auto__ (binds v)]
     (clojure.core.unify/garner-unifiers
      varp
      vb__4523__auto__
      expr
      binds)
     (clojure.core/if-let
      [vexpr__4524__auto__ (clojure.core/and (varp expr) (binds expr))]
      (clojure.core.unify/garner-unifiers
       varp
       v
       vexpr__4524__auto__
       binds)
      (if
       (clojure.core.unify/occurs? varp v expr binds)
       (throw
        (java.lang.IllegalStateException.
         (clojure.core/str "Cycle found in the path " expr)))
       (clojure.core.unify/bind-phase binds v expr))))),
   :clojure.spec.alpha/args
   (clojure.core.unify/var-unify
    [varp v expr binds]
    (clojure.core/if-let
     [vb__4523__auto__ (binds v)]
     (clojure.core.unify/garner-unifiers
      varp
      vb__4523__auto__
      expr
      binds)
     (clojure.core/if-let
      [vexpr__4524__auto__ (clojure.core/and (varp expr) (binds expr))]
      (clojure.core.unify/garner-unifiers
       varp
       v
       vexpr__4524__auto__
       binds)
      (if
       (clojure.core.unify/occurs? varp v expr binds)
       (throw
        (java.lang.IllegalStateException.
         (clojure.core/str "Cycle found in the path " expr)))
       (clojure.core.unify/bind-phase binds v expr)))))},
  :phase :macro-syntax-check}}
lipemorais commented 4 years ago

I just updated the actual most recent version of Midje, 1.9.9 and it worked.