Fork me on GitHub
#cursive
<
2017-10-03
>
cfleming03:10:13

@narek @pelletier Are you still experiencing the problem where you don’t get the test difference link?

cfleming03:10:28

@pelletier Do you have venantius/ultra, or humane-test-output, or anything similar as an nREPL plugin?

pelletier03:10:56

i do have ultra

cfleming03:10:10

If you remove that, does the test highlighting work?

cfleming06:10:19

(just in case you hadn’t seen it - no rush)

bfabry16:10:44

@U0567Q30W that fixes it for me

pelletier16:10:46

@U0567Q30W works for me too!

cfleming19:10:03

@U050MP39D @pelletier Thanks for letting me know! The problem is humane-test-output, which ultra installs.

cfleming19:10:50

I’m curious - I thought that Cursive provided everything that ultra does out of the box. Is there anything you wanted it to do that Cursive doesn’t?

pelletier20:10:08

i think the reason i installed it was for the stacktrace formatting

cfleming20:10:19

Cursive should do that too - if you have aviso/pretty installed and loaded, Cursive will use it.

pelletier20:10:26

ha, good to know

pelletier20:10:38

thanks Colin!

bfabry23:10:00

I don't always use cursive for a repl, ie using boot to quickly launch a repl with a different version of clojure for testing things

bfabry23:10:33

that said, I'm not too concerned to be losing ultra

bfabry23:10:47

though shouldn't cursive prompt to add aviso/pretty if you don't have it or something?

cfleming23:10:26

Ok. I’m actually adding a warning message for this case now - you can actually disable humane-test-output by adding an env var INHUMANE_TEST_OUTPUT

cfleming23:10:05

Well, Cursive will also use clj-stacktrace or fall back to clojure.stacktrace if it can’t find the other two.

pelletier23:10:25

must have happened quite a bit

cfleming23:10:21

Not so much, but it’s confusing when it does.

cfleming23:10:54

I can’t add images here, but it looks like this now:

cfleming23:10:17

Running tests in cursive-1865.core-test

Testing cursive-1865.core-test

WARNING: pjstadig/humane-test-output appears to be active.
This library interferes with Cursive's test functionality, in particular test result
diffs. You can disable it in your project.clj, or by setting the INHUMANE_TEST_OUTPUT
environment variable, either in your project.clj or your run configuration.


Ran 2 tests containing 2 assertions.
2 failures, 0 errors.

cfleming23:10:47

Although @bfabry’s mention of boot makes me realise I should make that less lein specific.

kenny18:10:54

Getting this error when attempting to generate stubs for my project with Datomic:

Error generating stubs for module command-processor: java.lang.NoSuchMethodError: org.slf4j.helpers.Util.safeGetSystemProperty(Ljava/lang/String;)Ljava/lang/String;
				at org.slf4j.impl.VersionUtil.getJavaMajorVersion(VersionUtil.java:11)
				at org.slf4j.impl.Log4jMDCAdapter.<clinit>(Log4jMDCAdapter.java:37)
				at org.slf4j.impl.StaticMDCBinder.getMDCA(StaticMDCBinder.java:59)
				at org.slf4j.MDC.<clinit>(MDC.java:90)
				at datomic.slf4j__init.load(Unknown Source)
				at datomic.slf4j__init.<clinit>(Unknown Source)
				at java.lang.Class.forName0(Native Method)
				at java.lang.Class.forName(Class.java:348)
				at clojure.lang.RT.classForName(RT.java:2186)
				at clojure.lang.RT.classForName(RT.java:2195)
				at clojure.lang.RT.loadClassForName(RT.java:2214)
				at clojure.lang.RT.load(RT.java:450)
				at clojure.lang.RT.load(RT.java:426)
				at clojure.core$load$fn__6542.invoke(core.clj:6047)
				at clojure.core$load.invokeStatic(core.clj:6046)
				at clojure.core$load.doInvoke(core.clj:6030)
				at clojure.lang.RestFn.invoke(RestFn.java:408)
				at clojure.core$load_one.invokeStatic(core.clj:5849

kenny18:10:57

I have tried restarting IntelliJ and doing "Invalidate caches and restart."