Fork me on GitHub
#clojure-spec
<
2018-07-21
>
jkrasnay01:07:29

Hi folks, I have a Re-frame app that is nicely checking my function invocations with spec but it’s not showing file names / line numbers.

jkrasnay01:07:43

Call to #' did not conform to spec:↵
<filename missing>:<line number missing>↵
↵
-- Spec failed --------------------↵
↵
Function arguments↵
↵
  (... :foo ... ...)↵
       ^^^^↵
↵
should satisfy↵
↵
  string?↵
↵

jkrasnay01:07:05

Is this normal, or should I be able to get a file name and line number here?

seancorfield02:07:20

@jkrasnay Are you using Expound there? That doesn't look like a raw clojure.spec error... Just wondering if it's a bug in the reporter itself...?

jkrasnay02:07:12

Yep, it’s expound. I’ll try taking that out.

jkrasnay03:07:18

Looks like Expound has that code there waiting for the day when CLJS will send caller info. For now it’s just teasing me.

😂 4
seancorfield04:07:15

@jkrasnay Good to know. I don't use cljs myself but I know there are all sorts of weird edge cases/differences from clj...