Fork me on GitHub

Yeah I'm totally fine with setting up some things manually.


I have to use a plain repl for something I've been working on and it's doing my head in.


@lfn3 Umm, it possibly could do - what are you using that’s fiddling with report?


Writing a generative testing lib


I'm curious about this, are you taking the QuickCheck route for generating data?


I'm working on my own property-based testing library, but with enumerative testing. Essentially a port of


My inspiration comes from hypothesis:


So I rebind report to capture failures.


Ok, are you using test.check?


I know test.check sends some extra messages that Cursive doesn’t handle - I could add support for those if that would help.


Nah I'm writing something like test.check.


The issue is I can't rebind the report fn when running inside a regular cursive repl.


Ok, got it.


Understand if it's not a priority, btw, I figure it's a pretty niche use case.


It is, but based on that issue it’s a problem that people have from time to time - anyone explicitly or implicitly adding humane-test-output will have the same problem.


The issue is that if I delegate then all the standard test output will go to the REPL, which may not be a problem.


I’d be fine with it outputting to the REPL, personally. The only thing that might be nicer is if you could capture the printed output and stuff it into the normal intellij test runner output window. That’s probably prone to even more weirdness than the existing solution and a lot more work though!


I run a figwheel repl by starting figwheel from the cursive REPL. Every once in a while, my target/classes starts to be filled up with the cljs-files from my source folder, causing fighweel to stop picking up my changes. Anyone else getting this?


I assumed this was a cursive problem, since I guess leiningen by itself does not put things in target/classes?


Hey guys. When I do "Load file into REPL" in my CLJS Figwheel project, my repl process terminates:

Error evaluating - class Socket closed
clojure.lang.ExceptionInfo: failed compiling file:/Users/alex/source/clj/pm/src/pm/core.cljs {:file #object[ 0x1ad08abd "/Users/alex/source/clj/pm/src/pm/core.cljs"]}
	at clojure.core$ex_info.invokeStatic(core.clj:4725)
	at clojure.core$ex_info.invoke(core.clj:4725)
	at cljs.compiler$compile_file$fn__13584.invoke(compiler.cljc:1533)
	at cljs.compiler$compile_file.invokeStatic(compiler.cljc:1494)
	at cljs.compiler$compile_file.invoke(compiler.cljc:1470)
	at cljs.closure$compile_file.invokeStatic(closure.clj:532)
	at cljs.closure$compile_file.invoke(closure.clj:523)
	at cljs.closure$eval15896$fn__15897.invoke(closure.clj:601)
	at cljs.closure$eval15832$fn__15833$G__15821__15840.invoke(closure.clj:485)
	at clojure.main.main(
Caused by: java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(
	at java.util.regex.Matcher.reset(
	at java.util.regex.Matcher.<init>(
	at java.util.regex.Pattern.matcher(
	at clojure.core$re_matcher.invokeStatic(core.clj:4782)
	at clojure.core$re_matches.invokeStatic(core.clj:4812)
	at clojure.core$re_matches.invoke(core.clj:4812)
	at cljs.util$compiled_by_version.invokeStatic(util.cljc:42)
	at cljs.util$compiled_by_version.invoke(util.cljc:39)
	at cljs.compiler$requires_compilation_QMARK_.invokeStatic(compiler.cljc:1455)
	at cljs.compiler$requires_compilation_QMARK_.invoke(compiler.cljc:1442)
	at cljs.compiler$compile_file$fn__13584.invoke(compiler.cljc:1511)
	... 65 more
dev:cljs.user!{:conn 3}=> 
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)