athos / Pinpointer

Pinpointer is yet another clojure.spec error reporter based on a precise error analysis
Eclipse Public License 1.0
94 stars 3 forks source link

(pinpoint (s/keys* ...) <input>) fails #3

Open athos opened 6 years ago

athos commented 6 years ago
=> (s/def ::x integer?)
:user/x
=> (pinpoint (s/keys* :req [::x]) [::x :foo])
[PINPOINTER] Failed to analyze the spec errors, and will fall back to s/explain-printer

In: [:user/x] val: :foo fails spec: :user/x at: [:user/x] predicate: integer?
nil
=> (pinpoint (s/keys* :req [::x]) [::x :foo] {:fallback-on-error false})

NullPointerException   clojure.core/deref-future (core.clj:2297)
=> 

This is due to CLJ-2143.

At the moment, Pinpointer is NOT supporting s/keys* (at least until CLJ-2143 is fixed).