Skip to content

(pinpoint <predicate> <input>) fails #2

Description

@athos
=> (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
=> 

Activity

  1. marco-m commented on Jul 11, 2018

    @marco-m

    Update: CLJ-2068 is solved and available in spec.alpha-0.2.168

  2. athos commented on Jul 12, 2018

    @athos
    OwnerAuthor

    Hi, thank you (again) for pointing it out!

    As with #4, spectrace still needs a little more work to make Pinpointer work with these code. So, stay tuned for a little bit while 🙏

  3. marco-m commented on Jul 12, 2018

    @marco-m

    Sure, no problems, and thanks for Pinpointer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions