Fork me on GitHub
#cider
<
2015-07-14
>
sundbp10:07:01

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.

sundbp10:07:35

any idea what could be going on?

sundbp10:07:13

(it looks awesome btw!)

malabarba11:07:02

@sundbp: Make sure both your cider-nrepl and your Cider (the emacs package) are the latest version.

malabarba11:07:00

These should be 0.10.0-snapshot and 20150713.1614 respectively

sundbp11:07:03

i did, the cider-nrepl snapshot that got downloaded is snapshotted as of yday

sundbp11:07:11

the cider emacs package was master from github

sundbp11:07:31

i may give prelude a go. been meaning to anyways.

malabarba11:07:20

Hm, then you may have a bug

malabarba11:07:32

let be update my stuff and check here

sundbp11:07:35

yeah. i’ve got an emacs-live setup that’s drifted for a long time

sundbp11:07:01

and it’s a bit out of control - so it may well be here. gonna give it a spin in prelude here.

malabarba11:07:39

@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?

malabarba11:07:11

Maybe we should take this to a proper bug report, so we don't spam the chat

sundbp11:07:57

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

malabarba11:07:57

good luck 😉

sundbp12:07:36

works nicely in a fresh prelude setup.

malabarba12:07:31

If you feel like debugging the debugger, it's always good to know what caused it to break in the other setup

sundbp13:07:28

yes. i’ve the the directory saved but not sure i’ll have time to go through it.

mateusz-fiolka14:07:36

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.

malabarba14:07:17

@mateusz-fiolka: The session should still be waiting for your input in that first buffer.

malabarba14:07:30

Unless you killed the buffer, then you lose the session.

malabarba14:07:18

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

mateusz-fiolka14:07:27

@malabarba: But when I try to continue using "n" it modifies the buffer, so minibuffer looses focus.

malabarba14:07:03

Are you 0.10 or 0.9,1?

mateusz-fiolka14:07:10

@malabarba: 0.9.1snapshot

mateusz-fiolka14:07:17

Another minor problem is that clearing repl output doesn't work always. Maybe it's a know problem?

malabarba14:07:01

I don't think it's known

malabarba14:07:46

Ok, firstly, "0.9.1" is released, so you don't need that "snapshot" anymore

mateusz-fiolka14:07:23

Ok, I'll update.

malabarba14:07:47

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?

mateusz-fiolka14:07:29

@malabarba: Yes, I do. 0.9.1 / 0.9.0 mismatch. Is this a serious problem? Because it looks like a warning.

malabarba14:07:13

for the debugger it is simple_smile

mateusz-fiolka14:07:23

Ok, I'll try to fix it.

malabarba14:07:44

try upgrading both sides to 0.9.1

malabarba14:07:49

and make sure you restart Emacs

malabarba14:07:10

and then we'll see if it works better

mateusz-fiolka14:07:41

@malabarba: Emacs package manager updated me to 0.10.0snapshot

malabarba14:07:21

ah, that's because you're using Melpa. The stable releases are on Melpa Stable.

mateusz-fiolka14:07:01

Then maybe I'lll try with 0.10

malabarba14:07:28

Just make sure you bump the clojure side too

mateusz-fiolka14:07:51

You mean cider-nrepl or tools.nrepl?

mateusz-fiolka14:07:39

Ok, no more warninngs, I'm on 0.10.0snapshot

malabarba14:07:47

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.

mateusz-fiolka14:07:31

I'm not sure what's going on, but no more problem with loosing focus.

malabarba14:07:05

Great! But is something else going wrong?

mateusz-fiolka14:07:25

Yes, but I'm not sure what it is yet simple_smile

mateusz-fiolka14:07:33

@malabarba: Ok, maybe I'm using it wrong. The steps:

mateusz-fiolka14:07:24

Instrument function, call the function - function name get's highlighted in red, first expression is highlighted and result is printed on the right

mateusz-fiolka14:07:04

Now I type "n", next expression is highlihted and printed

mateusz-fiolka14:07:12

Then I switch buffer to magit

mateusz-fiolka14:07:53

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.

malabarba14:07:43

Hm, are the overlays still in place?

mateusz-fiolka14:07:08

And on the buffer list there is a buffer *cider-debug

mateusz-fiolka14:07:57

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)

malabarba14:07:49

Magit does this thing where it automatically reverts buffers depending on what you do

mateusz-fiolka14:07:04

Ok, I'll try with dired.

malabarba14:07:08

That would be a way to explain that

malabarba14:07:44

If that's the case, I'll get in touch with magit to see how to avoid it.

mateusz-fiolka14:07:03

@malabarba: Yes, this is the case. No problems when I use dired.

mateusz-fiolka14:07:49

magit version 20150713.2244, emacs 24.5.1

malabarba14:07:04

Ok. THanks for spotting that, btw. simple_smile

malabarba14:07:17

I'll try to figure out a general way to handle cases like buffer reverting/being-killed

mateusz-fiolka14:07:27

Thanks for helping with diagnosing that.