Pinpointer
Pinpointer copied to clipboard
(pinpoint (s/& ...) <input>) fails
=> (pinpoint (s/& integer? even?) [1])
[PINPOINTER] Failed to analyze the spec errors, and will fall back to s/explain-printer
In: [0] val: 1 fails predicate: even?
nil
=> (pinpoint (s/& integer? even?) [1] {: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-2152. Also, CLJ-2178 potentially causes a similar issue which may be shadowed by CLJ-2152.
At the moment, Pinpointer is NOT supporting s/&
(at least until CLJ-2152 is fixed).
Update: CLJ-2152 is closed as duplicate of CLJ-2178, and CLJ-2178 is resolved in clojure.spec spec.alpha-0.2.168.
Hi, thank you for pointing it out, @marco-m!
At the moment I'm working on spectrace, which is the analyzer Pinpointer is using under the hood, and it still needs a little more tweaks to adapt the changes updated in spec 0.2.168. So, please be patient until this issue is resolved soon after finishing that 🙇