This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-14
Channels
hey everyone. i just tried the cider-debug in master and cider-nrepl-0.10-0-SNAPSHOT. it looks great, but I don’t seem to have any cursor movement or highlighting of which sexp it’s at. cursor stays up by the defun line.
I saw the video of good behavior here: http://endlessparentheses.com/debugger-improvements-in-cider-0-10-0.html?source=rss&utm_source=dlvr.it&utm_medium=twitter
@sundbp: Make sure both your cider-nrepl and your Cider (the emacs package) are the latest version.
and it’s a bit out of control - so it may well be here. gonna give it a spin in prelude here.
@sundbp: So the values are displayed properly, and you can step through the evaluation, but the cursor is always left at the top of the function?
i’ll give it a go over the day here and see if i can separate it into my own clashing stuff or something real
If you feel like debugging the debugger, it's always good to know what caused it to break in the other setup
Regarding cider debugger - when I'm starting to debug a function and then I'm switching to another buffer - is it possible to return to the debug session? Because it's not obvious whether it ended and what to do about it.
@mateusz-fiolka: The session should still be waiting for your input in that first buffer.
If you no longer care about the session, you can always use the usual cider-interrupt command, which is boudn to C-c C-b
@malabarba: But when I try to continue using "n" it modifies the buffer, so minibuffer looses focus.
@malabarba: 0.9.1snapshot
Another minor problem is that clearing repl output doesn't work always. Maybe it's a know problem?
Ok, I'll update.
secondly, the debugger from 0.9.1 shouldn't let you move around or switch buffers. So something is going wrong. When you start the REPL do you get warnings about inconsistent versions?
@malabarba: Yes, I do. 0.9.1 / 0.9.0 mismatch. Is this a serious problem? Because it looks like a warning.
Ok, I'll try to fix it.
@malabarba: Emacs package manager updated me to 0.10.0snapshot
Then maybe I'lll try with 0.10
You mean cider-nrepl or tools.nrepl?
Ok, no more warninngs, I'm on 0.10.0snapshot
Later on, if you prefer to stay on the stables, you can delete the cider package, configure Melpa stable, and install the 0.9.1.
I'm not sure what's going on, but no more problem with loosing focus.
Yes, but I'm not sure what it is yet
@malabarba: Ok, maybe I'm using it wrong. The steps:
Instrument function, call the function - function name get's highlighted in red, first expression is highlighted and result is printed on the right
Now I type "n", next expression is highlihted and printed
Then I switch buffer to magit
When I switch buffer back to the original buffer the cursor is where I'm clicking. I can now type "n" and it will be changing the buffer text.
And on the buffer list there is a buffer *cider-debug
There is only the red overlay left, no current expression overlay (I guess this is just emacs highlighting so it's lost with change of focus)
Magit does this thing where it automatically reverts buffers depending on what you do
Ok, I'll try with dired.
@malabarba: Yes, this is the case. No problems when I use dired.
magit version 20150713.2244, emacs 24.5.1
I'll try to figure out a general way to handle cases like buffer reverting/being-killed
Thanks for helping with diagnosing that.