Fork me on GitHub
#cursive
<
2017-09-08
>
potetm02:09:13

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

lfn303:09:50

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

cfleming03:09:17

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

lfn303:09:58

Writing a generative testing lib

nwjsmith13:09:13

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

nwjsmith13:09:02

I'm working on my own property-based testing library, but with enumerative testing. Essentially a port of https://github.com/rudymatela/leancheck

lfn323:09:57

My inspiration comes from hypothesis: http://hypothesis.works/

lfn303:09:49

So I rebind report to capture failures.

cfleming03:09:35

Ok, are you using test.check?

cfleming03:09:58

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

lfn303:09:45

Nah I'm writing something like test.check.

lfn303:09:35

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

cfleming03:09:48

Ok, got it.

lfn303:09:22

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

cfleming03:09:48

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.

cfleming03:09:22

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

lfn323:09:32

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!

ingesol11:09:40

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?

ingesol11:09:11

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

alexbay23:09:01

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

Error evaluating - class java.net.SocketException: Socket closed
clojure.lang.ExceptionInfo: failed compiling file:/Users/alex/source/clj/pm/src/pm/core.cljs {:file #object[java.io.File 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(main.java:37)
Caused by: java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
	at java.util.regex.Matcher.reset(Matcher.java:309)
	at java.util.regex.Matcher.<init>(Matcher.java:229)
	at java.util.regex.Pattern.matcher(Pattern.java:1093)
	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)