This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-12
Channels
- # adventofcode (6)
- # beginners (148)
- # boot (5)
- # calva (1)
- # cider (10)
- # cljdoc (10)
- # cljs-dev (8)
- # cljsrn (10)
- # clojure (180)
- # clojure-dev (24)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (32)
- # clojure-losangeles (1)
- # clojure-nl (40)
- # clojure-spec (10)
- # clojure-uk (44)
- # clojured (4)
- # clojurescript (88)
- # community-development (33)
- # core-async (7)
- # cursive (19)
- # datomic (98)
- # duct (3)
- # events (1)
- # figwheel-main (10)
- # fulcro (62)
- # leiningen (23)
- # luminus (18)
- # off-topic (19)
- # pedestal (6)
- # re-frame (46)
- # reagent (21)
- # ring (17)
- # ring-swagger (3)
- # shadow-cljs (94)
- # slack-help (9)
- # spacemacs (14)
- # sql (1)
- # testing (4)
- # tools-deps (14)
I have a weird error:
/home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:51321
throw Error("Require clojure.test.check before calling check.");
^
Error: Require clojure.test.check before calling check.
at /home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:51321:13
at Function.laputa.policy.generative._main.cljs$core$IFn$_invoke$arity$variadic (/home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:51335:4)
at laputa.policy.generative._main (/home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:51116:41)
at Object.cljs.core.apply_to (/home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:10996:84)
at Function.cljs.core.apply.cljs$core$IFn$_invoke$arity$2 (/home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:11250:42)
at /home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:51344:17
at Object.<anonymous> (/home/arichiardi/git/laputa/policy-fn/.cljs/gen-test.js:51346:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
but I am requiring the namespace
is it known?
all good in 1.10.439
as a data point, the call to check!
is done via a macro if it can be helpful for debugging, but my generative tests are now all emitting that warning
@richiardiandrea You need to require both [clojure.test.check]
and [clojure.test.check.properties]
. The error message is a bit misleading and I tried to correct the ClojureScript site for this already (https://github.com/clojure/clojurescript-site/pull/300). I hope this can be merged soon (cc @dnolen and @alexmiller)
Oh great thank you
@richiardiandrea This JIRA corrects the error message in CLJS: https://dev.clojure.org/jira/browse/CLJS-3048