Clojurians
#cljs-dev
<
2016-09-07
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

mfikes11:09:05

Support for self-hosted ClojureScript has landed in the test.check repo (https://github.com/clojure/test.check/commit/ebcc57dd631e25ee39bc059899e3bbd9ddf24ee9). Ultimately, when the JAR is available, we could consider perhaps writing a small generative test for some core function and add it to the ClojureScript test suite.

darwin12:09:09

working on a macro which emits compiler warnings by hooking into ana/*cljs-warnings*, not sure if I’m doing it correctly, but it seems to work in my code - my problem is in cljs.test, where I’m getting double macro expansion calls so my warnings appear twice, is this a bug in cljs.test that form like (is (= (my-macro args) :val)) generates code which expands my-macro twice?

darwin12:09:01

have to go now, in the meantime any pointers how to implement compile-time warnings/errors in my own macros would be appreciated, thanks

darwin12:09:21

I felt like the “easy way" of printing directly to err or out would fail when people used custom warnings handlers or automating the compiler via the API

mfikes12:09:00

@darwin I recently logged http://dev.clojure.org/jira/browse/CLJS-1764 which might be related

viebel13:09:27

Thanks @mfikes for making test.check self-host compatible

viebel13:09:36

The web page takes a while to load… Because the whole test.check code is loaded from github