Fork me on GitHub
#cider
<
2017-05-26
>
dpsutton12:05:09

could you post a screenshot?

dpsutton15:05:08

@kiemdoder can you post a screenshow?

tanzoniteblack16:05:42

@kiemdoder when you have your cursor over text in emacs, you can run M-x describe-face to see what face (i.e. named set of font attributes) is being applied, those names will generally be descriptive enough to understand why the mode is causing the symbol to be formatted in such a way

tanzoniteblack16:05:55

or at least it would give us something to help explain it to you 🙂

dpsutton17:05:58

here's a function i've been playing with: create a let binding of the local vars when debugging:

dpsutton17:05:56

very rudimentary and looking at extending cider-nrepl to do this

dpsutton17:05:18

but you need to be in the debugger, run this with whatever code you want for the body highlighted, and then quit the debugger

dpsutton17:05:27

working to get the debugger to send the locals over and then quit for you

richiardiandrea17:05:05

@dpsutton saving this as I have been trying to create something similar as well!

dpsutton17:05:30

luckily @malabarba 's debugger already sends back the locals so we just have to look at them and format them

richiardiandrea17:05:35

in my head there should be a function that defines a let with its results at the repl

richiardiandrea17:05:47

I mean does the actual def

richiardiandrea17:05:54

from each let binding

dpsutton17:05:09

i didn't want to reach into def so it wouldn't clobber anything in the environment

dpsutton17:05:18

but thought about interning the environment maps

dpsutton17:05:26

and letting you name them and browse them

dpsutton17:05:52

lots of ways to go about it

richiardiandrea17:05:55

I guess my use case is, you want to define the let so that you can debug the "body"

richiardiandrea17:05:11

there could be a cleanup thing for undefining them

richiardiandrea17:05:02

@dpsutton have you stumbled across a function to get a list of symbol+forms ... aka the bindings, from wherever I am in a let (or other binding forms) ?

dpsutton17:05:37

Yeah check out the locals that come across in the debug messages

dpsutton17:05:56

And I make it copy to the kill ring so you can easily make your own function and then step through that

richiardiandrea17:05:28

awesome yep I was looking for exactly that

dpsutton17:05:55

Cool. Play around with it. Let's get a good prototype going