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/& ...) <input>) fails #4

Open athos opened 6 years ago

athos commented 6 years ago
=> (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).

marco-m commented 5 years ago

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

athos commented 5 years ago

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 🙇