This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-26
Channels
- # aws (7)
- # beginners (109)
- # boot (5)
- # carry (2)
- # cider (25)
- # clara (6)
- # cljs-dev (86)
- # cljs-experience (19)
- # cljsrn (1)
- # clojure (183)
- # clojure-dev (7)
- # clojure-dusseldorf (7)
- # clojure-gamedev (2)
- # clojure-greece (32)
- # clojure-italy (2)
- # clojure-norway (1)
- # clojure-russia (228)
- # clojure-sg (3)
- # clojure-spec (38)
- # clojure-uk (104)
- # clojurebridge (1)
- # clojurescript (29)
- # community-development (9)
- # core-async (118)
- # core-matrix (20)
- # cursive (5)
- # datomic (140)
- # emacs (25)
- # figwheel (1)
- # hoplon (21)
- # jobs (4)
- # lein-figwheel (2)
- # luminus (10)
- # lumo (35)
- # off-topic (137)
- # om (31)
- # onyx (62)
- # pedestal (6)
- # reagent (25)
- # remote-jobs (1)
- # ring-swagger (11)
- # spacemacs (2)
- # test-check (17)
- # uncomplicate (10)
- # unrepl (1)
- # untangled (20)
- # vim (4)
- # yada (3)
@donaldball I think maybe @gfredericks did?
@alexmiller the workaround was to move the self spec before the parent
hmm, fails on Clojure too - I think this is related to a couple other existing tickets where s/def chases the spec too early
I wrote a defn macro that dispatches on specs matching; it didn't make an fdef
hello people, I wanna share with you a snippet that I wrote here to find bad generators on your project, it's helping me a lot (specially when you have a s/keys
filled with items and don't know which of then is not generating)
(let [keys (->> (s/registry)
keys
(filter #(and (qualified-keyword? %)
(not (contains? #{"clojure.core.specs.alpha"
"clojure.spec.alpha"} (namespace %))))))]
(doseq [k keys]
(try
(doall (s/exercise k))
(catch Exception e
(println "Bad generator for" (pr-str k))))))
this will print Bad generator for :some/key
for the generators that are not being able to find a value after 100 tries
I hope it may help you as it is helping me 🙂
I'm having an issue generating date-ranges, getting
clojure.test.check.rose_tree.RoseTree cannot be cast to
clojure.test.check.rose_tree.RoseTree
no -- it has to do with whether you have superfluous *.class
files present, and whether you've require/reloaded
stuff
reloading things will redefine some classes. Those classes will have the same name as existing classes, but will be !=
from the JVM's perspective
aot drowns kittens in a sack in the river (the kittens are a metaphor for your hopes and deams)
Which the .coerce namespace depends on, which is weird because when I used the function before I restarted it worked.
It's really the only kitten that sometimes needs to claw itself to fresh air once in a while.
I meant to say, the only thing that I find really annoying at times is dependency issues like these. It takes by far the most of my time out of all time-taking things that aren't normal debugging/coding.
For folks doing programmatic decoding of explain-data
to produce nice messages, it seems that required keys now (in 0.1.123) produce a :pred
of (clojure.core/fn [%] (contains? % :the-key))
whereas they used to produce (contains? % :the-key)
— this broke a lot of our decoding logic so I figured I’d mention it here in case it helps other debug similar breakage…