-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
=> (pinpoint integer? :foo)
[PINPOINTER] Failed to analyze the spec errors, and will fall back to s/explain-printer
val: :foo fails predicate: :clojure.spec.alpha/unknown
nil
=> (pinpoint integer? :foo {:fallback-on-error false})
IllegalArgumentException Don't know how to create ISeq from: clojure.core$integer_QMARK_ clojure.lang.RT.seqFrom (RT.java:550)
=>This is due to CLJ-2068. A workaround for the issue is to wrap the predicate in s/spec:
=> (p/pinpoint (s/spec integer?) :foo)
Detected 1 spec error:
----------------------------------------------------------------------
(1/1)
Input: :foo
^^^^
Expected: integer?
----------------------------------------------------------------------
nil
=>