Fork me on GitHub
#cursive
<
2023-01-27
>
onetom11:01:21

@helios are you using the cursive test runner? how quick can u run a single unit test? for us, even a simple unit test takes 4+ seconds to run, because so many things are initialized. Eg. pretty-printing Datomic Cloud datoms is initialized in a xxx.test-harness namespace, which we require in every test NS, for the sake of simplicity and consistent testing experience.

onetom11:01:33

and that's on an M1 Mac Mini, with the biggest libraries clojure.core/compiled...

onetom11:01:44

(time (require 'xxx.test-harness))
"Elapsed time: 3801.725792 msecs"
and without compiled libs:
(time (require 'xxx.test-harness))
"Elapsed time: 6548.884583 msecs"

jpmonettas18:01:11

hi everybody! I'm trying to start a repl in Cursive pointing to a custom version of the Clojure compiler currently on my local mvn repo as clojure-1.12.0-master-SNAPSHOT so I can run Clojure expressions and debug Java code. I added the new compiler version to my deps.edn and the repl is working fine. My question is how do I attach the clojure sources as an external library so I can jump into java code, debug, etc ?

cfleming19:01:55

Are you adding it in an alias in your deps.edn? If so, selecting that alias in the deps toolwindow (as described here: https://cursive-ide.com/userguide/deps.html#working-with-aliases) then refreshing your project should work.

jpmonettas20:01:55

No, my deps edn contains just this `

{:deps {org.clojure/clojure {:mvn/version "1.12.0-master-SNAPSHOT"}}}
`

cfleming20:01:26

And that doesn’t appear in your external libraries view?

jpmonettas20:01:31

but then on externali libraries I see this

cfleming20:01:06

Have you refreshed your project since you made the change to add it?

cfleming20:01:33

If you look in Dependencies in the Deps toolwindow, what does that look like?

jpmonettas20:01:51

> Have you refreshed your project since you made the change to add it? oh, that did the trick

cfleming20:01:06

Great, I like an easy fix 🙂