-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuple with set predicate not reported correctly #67
Comments
@arichiardi Thanks for reporting this! Just to make sure I understand the repro, do you mind pasting the call that triggered this? Was it an instrumented function call? |
@arichiardi Thanks again for reporting this! I'm unable to repro, so I suspect I'm not doing the repro steps correctly 😄 Here is what I tried on the REPL with Expound 0.4.0 (require '[clojure.spec.alpha :as s])
(require '[clojure.spec.test.alpha :as st])
(require '[expound.alpha :as expound])
(set! s/*explain-out* expound/printer)
(st/instrument)
(s/def :stm/success-state (s/tuple #{:start :end :latest-event :attempt-commit}
any?
nil?))
(expound/expound :stm/success-state [:error nil {}]) And I got
I tried on Clojure 1.9.0 and Clojurescript 1.9.946. Are you on different versions? |
Oh ok the test seems fine, thanks for trying it out! |
@arichiardi Interesting! I haven't tried it on lumo, so I'll need to look into that. I haven't had a chance to use lumo much - is there a relevant config file you can share that sets up the version of Expound and Clojurescript? |
Not at the keyboard now but probably I should check what |
The script you tried up there basically works the same with lumo, you could just:
It should work, make sure you install the latest:
|
@arichiardi Unfortunately, I'm still having trouble reproducing. Here are my steps:
Just double checking - are you using Expound 0.4.0? |
I have tried again and cannot reproduce the original error I tried yours and it is working. I am using |
@arichiardi Yes, if you see this again, please don't hesitate to reopen this issue. I'd love to get this fixed. Thanks for using Expound! |
Hi again 😄 I have a bit of an improvement request 😄
I have a spec with a set predicate:
Spec error was:
And
expound
error:The text was updated successfully, but these errors were encountered: