This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-03
Channels
- # aleph (1)
- # beginners (42)
- # boot (34)
- # cider (157)
- # cljs-dev (12)
- # cljsrn (3)
- # clojure (165)
- # clojure-conj (1)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-russia (20)
- # clojure-spec (27)
- # clojure-uk (173)
- # clojurescript (116)
- # cursive (30)
- # datomic (87)
- # devcards (1)
- # docs (9)
- # emacs (2)
- # ethereum (2)
- # events (2)
- # fulcro (60)
- # graphql (10)
- # hoplon (2)
- # jobs-rus (6)
- # keechma (1)
- # lein-figwheel (9)
- # leiningen (36)
- # luminus (2)
- # mount (3)
- # off-topic (16)
- # om (14)
- # onyx (12)
- # pedestal (19)
- # portkey (107)
- # re-frame (9)
- # reagent (5)
- # ring (26)
- # shadow-cljs (149)
- # spacemacs (3)
- # sql (6)
I'm specifying an anonymous function, and its return value does not match the spec. Instead of normal error report or something it says like this: clojure.lang.ExceptionInfo: Can't convert path {:form (#function[.../fn--20377/fn--20384]), :val {}, :in [0], :in' []}
It sounds like a bug in Expound? https://github.com/bhb/expound/blob/b9fc0d46dc3534bd77cdfebcf771cfecf163f058/src/expound/paths.cljc#L160-L166 If you have a repro and some time, a bug report would be appreciated š
hmm, not sure. repro?
yeah, want to know how to reproduce that error
and then if you can follow it with a (pst *e)
print stack trace
it is a function in clojure.repl
know what, looks like spec went ok, it was test who produced this strange error report...
good, because I didnāt know where the āconvert pathā error was coming from :)
@alexmiller are there any plans to support specing the protocol implementations in records?
not near term. If you could spec them, Iām not sure you have the opportunity to actually do useful stuff with those specs.
@alexmiller maybe you remember I tried to invite you to our conf in December and you couldn't make it š Can you probably recommend someone from clojure core developers who might be able to visit us with a talk?
lots of fine people - take a look at any of the recent clojure confs (EuroClojure, Clojure/west, Clojure/conj, ClojureX, clojureD, clojuTRE, etc)
maybe post something here in #events, on the mailing list, on the reddit, etc
Is there a function in spec similar to spec/assert
but that conforms the value? (spec/assert ::a-spec x)
returns x
(or throws) and not the conformed value of x
.