This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-04
Channels
- # announcements (5)
- # beginners (56)
- # calva (2)
- # cider (30)
- # circleci (2)
- # cljsrn (90)
- # clojars (3)
- # clojure (18)
- # clojure-dev (9)
- # clojure-europe (3)
- # clojure-greece (14)
- # clojure-ireland (6)
- # clojure-italy (6)
- # clojure-nl (7)
- # clojure-norway (1)
- # clojure-spec (1)
- # clojure-sweden (3)
- # clojure-uk (14)
- # clojurescript (52)
- # cursive (5)
- # data-science (9)
- # datomic (3)
- # emacs (26)
- # expound (11)
- # figwheel (3)
- # figwheel-main (6)
- # fulcro (24)
- # garden (1)
- # graalvm (101)
- # liberator (1)
- # mount (1)
- # off-topic (1)
- # pathom (27)
- # portland-or (2)
- # reagent (13)
- # reitit (2)
- # ring (1)
- # shadow-cljs (10)
- # spacemacs (11)
- # sql (6)
Hello! I get some kind of infinite loop in conform
after I have renamed and moved around a couple of spec names, any tips how to troubleshoot it? It seems deep-resolve
and reg-resolve
are involved in the loop as well as a particular spec (`:my.ns/account-invoices`) and if the debugger is correct then we regularly arrive to a point in reg-resolve
where both spec
and k
are null.
Update: I can replicate - calling (reg-resolve :my.ns/account-invoices)
never returns.
(Clojure 1.10.1, spec 0.2.44)
This is really weird - all parts of the spec resolve but not the spec itself. I have this:
(s/def ::account-invoices
(s/nilable
(s/every-kv ::accid ::acc+invoice)))
and both (reg-resolve! :my.ns/acc+invoice)
and (reg-resolve! :my.ns/accid)
return a spec successfully yet (reg-resolve! :my.ns/account-invoices)
never returns....
If I change the name of the spec to :tmp/account-invoices
then (reg-resolve! :tmp/account-invoices)
succeeds.
SOLVED: This line little more down was the issue (s/def ::account-invoices ::account-invoices)
I wish Spec had a loop detection... 4
4