Pinpointer icon indicating copy to clipboard operation
Pinpointer copied to clipboard

(pinpoint (s/& ...) <input>) fails

Open athos opened this issue 6 years ago • 2 comments

=> (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).

athos avatar Oct 13 '17 05:10 athos

Update: CLJ-2152 is closed as duplicate of CLJ-2178, and CLJ-2178 is resolved in clojure.spec spec.alpha-0.2.168.

marco-m avatar Jul 11 '18 13:07 marco-m

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 🙇

athos avatar Jul 12 '18 01:07 athos