Fork me on GitHub
#cursive
<
2017-02-03
>
cfleming00:02:48

@liamd Yes, there are two ways, depending whether you want to run it within the IDE or in a terminal.

cfleming00:02:16

If you want to run it in the IDE, then you should be able to create a lein run config, turn on trampoline and just debug it.

cfleming01:02:49

If you want to run it in a terminal, it’s a little more complicated. First, create a remote debug Run Config (called “Remote” - this is not the remote REPL option). Copy the “Command line arguments for running remote JVM”, and then put those in your Leiningen project.clj (under :jvm-args IIRC, but I’m not 100%). You might want to change suspend=y in the arguments, this will cause the JVM to pause at startup until the debugger connects.

cfleming01:02:20

Then you can run your app as normal on the command line, the JVM will start in debug mode and you’ll be able to run your Remote config to connect to it.

onetom04:02:21

is there a way to tell the Cursive Remote nREPL to evaluate some expressions on connection? i want to run this (set! *print-namespace-maps* false), but since it's a dynamic var, every REPL connection has its own copy... i tried this in my build.boot but no effect:

(repl :server true    :eval '(set! *print-namespace-maps* false))

cfleming04:02:29

@onetom Note that that will not do what you want - see here for discussion: https://groups.google.com/d/topic/cursive/BF0r1qsPm-w/discussion

cfleming04:02:46

The TLDR is that Cursive pretty-prints on the client side, and it’s not currently configurable.

cfleming04:02:05

When I get a moment I’m going to think about whether that’s just a terrible idea or not.

onetom04:02:38

and there is no way to control that client side, right?

cfleming04:02:46

Not at the moment, no, sorry

onetom04:02:27

can i configure which clojure version is that client side using?

onetom04:02:20

because i would to try it with alpha14, which might already pretty-print correctly

hlship23:02:32

Is there an easy way to get Cursive to run all tests in all test namespaces? I find that cycling through the namespaces one at a time is a problem (likely to miss one) but having to do it at the command line is a problem (load times and all that).

cfleming23:02:36

@hlship No, but I’m planning to add this soon.

cfleming23:02:02

@onetom No, but I’ll fix that issue for the next release.

cfleming23:02:18

Cursive uses fipp, which is independent of the Clojure version.