Fork me on GitHub
#cursive
<
2018-07-20
>
cfleming01:07:03

@p-himik I’m planning to improve all of that shortly, hopefully in this EAP cycle.

👍 4
steveb8n03:07:27

How do I enable deps.edn aliases in my project so that the dev deps are included in the repl classpath?

steveb8n03:07:45

I presume RTFM but I can’t find what I’m looking for

cfleming03:07:09

@steveb8n I’m fixing that right now 🙂

steveb8n03:07:55

great. should I wait or is there a workaround for now?

cfleming03:07:09

@steveb8n @kenny Would you want aliases enabled or disabled by default?

steveb8n03:07:16

I’m trying to enable aliases using CLI params

cfleming03:07:20

I think waiting is the only option, sorry.

steveb8n03:07:59

I’d like to have same as lein: pick which aliases are enabled in the run config

kenny03:07:01

I prefer explicit enabling.

👍 4
cfleming03:07:46

Ok. Lein actually has a series of common profiles which are enabled by default, deps doesn’t really have that (except :test I guess).

kenny03:07:03

@steveb8n You can start a nrepl and connect to it in Cursive.

steveb8n03:07:15

thx, I’ll try that

cfleming03:07:22

That will mean that in every new project you’ll have to enable those deps.

steveb8n03:07:53

that’s ok with me too. I don’t mind the extra step to know exactly what’s happening

4
cfleming03:07:08

I’ll only enable :test by default then.

steveb8n03:07:22

when I noobed Cursive, I was a bit confused how “dev” was auto-enabled

kenny03:07:27

You could have an IDE level setting for default aliases to cater to users who want aliases automatically used.

cfleming03:07:52

Yeah, I’ll think about that - that’s probably the best solution.

8
steveb8n03:07:28

@kenny remote nrepl worked. thanks

4
steveb8n03:07:54

fyi I’m working on a Datomic Ions project and using the new Ion lib is much easier in deps.edn than lein. hence the question. thanks for adding this, starts nice and fast too

mikeyford11:07:19

Hey there, n00b question here, when I'm running the debug REPL and I'm exploring variables in the debugger, is there an easy way to def a variable of interest so that I can start poking it in my REPL session? (e.g. I'm interested in a symbol that's defined in a let)

kennytilton13:07:54

You want to code (let [x 42]...) and then get at x in the REPL? let bindings are not like def vars, so no.

flowthing13:07:39

I haven't tried it myself, but I think https://github.com/vvvvalvalval/scope-capture is precisely for that sort of thing.

mikeyford13:07:38

scope-capture looks neat, but for my use cases I can achieve something similar with as much effort doing

(let [x 1
      _ (def y x)])
while debugging. It's really handy that I can inspect the let bindings in the cursive debugger, I guess I just wondered there was a tool in the debugger where I could go one step further and assign them globally to a symbol of my choosing in a quick and easy way.