Fork me on GitHub
#cursive
<
2015-10-21
>
thosmos01:10:01

@dsapoetra: I'm using that same set of tools and datomic interaction is working for me

thosmos01:10:53

@cfleming: I have a project with two modules: om (from git) and myapp (both clj and cljs). Is it possible to run my app in a debug REPL such that the debugger uses the CLJ code from the om module instead of from maven?

thosmos01:10:23

or rather so that I can set a breakpoint in the om code?

cfleming01:10:42

@dsapoetra: I don’t, sorry - it looks like Datomic is having some problem, but I have no idea what it could be.

cfleming01:10:29

@thosmos: You should be able to break in the om code. When you say “instead of from Maven”, what do you mean?

dsapoetra01:10:41

@cfleming: ouch... thank you anyway.....

cfleming02:10:35

@dsapoetra: I know that a lot of people use Datomic with Cursive, so AFAIK there’s nothing fundamental about the Cursive REPL that would make that not work.

dsapoetra02:10:10

@cfleming: ok... sorry for problem...

thosmos02:10:20

well, I mean that om is in the project.clj file for my app and the default is for intellij to look up that dep in maven. I tried putting the local module in my app's dependencies above that maven dep, but it's not seeing it.

cfleming02:10:55

@thosmos: Ah, I see. I think what you want is to use lein checkouts.

thosmos02:10:24

oh ok, so instead of using intellij's native dependency ordering?

cfleming02:10:05

Yeah, if you set up a checkout Cursive will import the project accordingly, create a module for Om and attach it to the project

cfleming02:10:36

@dsapoetra: One thing to check is that your classpath is the same when running on the command line and in Cursive

cfleming02:10:51

In Cursive you can see that in the first line that’s printed when the REPL starts.

thosmos02:10:43

and what about debugging breakpoints? Will I be able to set them and step through code in both modules?

cfleming02:10:16

@thosmos: You should be able to, yes.

akiel15:10:27

hi - how can I specify a leiningen profile to use in a REPL? I like to use a profile different from dev.

cfleming21:10:46

@akiel: That’s actually supported in the next build, which will hopefully be out today.