Fork me on GitHub
#cider
<
2015-07-18
>
bozhidar05:07:00

do you really need to do something like this?

bozhidar05:07:18

while the REPL boots slowly it’s not something you’re restarting often afterwards

bozhidar05:07:26

I generally restart it almost never

logaan07:07:19

so debugging using spacemacs is a bit weird. once you hit a breakpoint you have to enter insert mode in order to enter any of the commands for the debugger (next, continue, etc)

logaan07:07:10

#break and #dbg don’t seem to kick in when you load the code by evaluating the buffer

logaan07:07:24

works fine by evaluating expression

malabarba12:07:43

@logaan: If you compile the buffer with C-c C-k, then indeed #break and #dbg are ignored. I just noticed this yesterday too, will fix it soon. For now, you canuse C-c b, which has virtually the same effect and doesn`t have that problem. (or any of the evaluation commands)

malabarba12:07:14

@logaan: As for spacemcas, it might be worth getting in touch with them about that. But then, if you're not in insert mode maybe the debugger keys would conflict with other global spacemacs keys. I don't know spacemacs enough to know if that's the case, but if it is that means the behavior you describe is more or less inevitable.

rui.yang13:07:07

has anyone got figwheel working with clj-refactor? seems figwheel hard wired nrepl middlewares, and ignore nrepl-refactor middleware. wonder if there is any workaround.

bozhidar13:07:37

clj-refactor doesn’t work with cljs anyways

bozhidar13:07:26

all the AST-related stuff are clj dependent, although adding support for cljs is on the roadmap

rui.yang13:07:27

@bozhidar: thanks. saved me time for digging into codes. I can forget it for now. Had thought demonstrate refactoring to my coworkers. they are kind of afraid of dynamic types, because you cannot easily debug and refactor.

bozhidar13:07:49

do the demonstration using Clojure - by the the time they’re hooked, @benedek will add cljs support simple_smile

rui.yang13:07:37

currently just plan to demo the reactive functional web ui with figwheel and reagent. and maybe after that, I can switch to a clojure project and demo the refactor stuff.

malabarba14:07:46

There's a lot of stuff that clj-refactor does entirely on the emacs side. Those parts will work with cljs.

malabarba14:07:35

But the heavier refactorings rely on the nrepl, so they won't

bozhidar14:07:14

yep, that’s correct

bozhidar14:07:55

but because @rui.yang asked about the middleware I’m guessing he’s interested in the nrepl bits