Fork me on GitHub
#cider
<
2016-04-28
>
escherize04:04:59

cider debugger--- thanks you guys it rocks my socks

escherize04:04:17

😂👍:skin-tone-3:👏:skin-tone-3:metalmetal

pre18:04:25

I’m unable to get cider debugger in 0.12, though I used it extensively in 0.11. I requested help earlier this week and I still can’t figure out what’s missing. Does anyone know how to debug the debugger!

pre18:04:59

I start a repl manually on a lein profile with a headless port.

pre19:04:08

The error message after C-u C-M-x is generic: symbol’s function definition is void: cider—region-for-defun-at-point

malabarba19:04:08

@pri: try reinstalling CIDER. Looks like a bad compilation issue

malabarba19:04:24

I still don't understand why so many people have this.

pre19:04:25

Will do.

malabarba19:04:48

Package.el is not that incompetent

pre19:04:49

I’m using cask

malabarba19:04:16

Then I guess all bets are off. 😛

pre19:04:08

Given that I can manage dependencies at the top-level, I assume cask is better at managing them. Oh well simple_smile

pre19:04:59

Do you see any conflicts with this dependency list https://github.com/priyatam/emacs.d/blob/master/Cask

xcthulhu19:04:17

It looks like it might be using the CIDER in Marmalade rather than melpa-stable

xcthulhu19:04:47

Not sure how cask works, I have my own home-brewed thing that I use

pre20:04:25

I reordered the list with melpa-stable, followed by marmalade. Reinstalled all my Emacs deps from scratch. Still same error.

dpsutton20:04:57

i'm looking and i don't see any function named cider--region-for-defun-at-point

pre20:04:49

cider-version=0.12.0, clojure-mode: 5.3.0, cider-nrepl=0.12.0

pre20:04:09

I also removed my ~/.lein/profiles.clj

dpsutton21:04:27

can you tell me the result of *clojure-version* ?

dpsutton21:04:33

evaluated in the clojure repl?

malabarba21:04:37

@pri I just don't use marmalade at all.

malabarba21:04:15

@pri: And the function you're getting the error for doesn't even exist anymore

malabarba21:04:27

So you're clearing fetching an old cider somehow

malabarba21:04:45

do M-x toggle-debug-on-error. When you reproduce the error you'll get a backtrace

malabarba21:04:17

This will tell you which is the function that is trying to call cider—region-for-defun-at-point

malabarba21:04:50

You can then click through to the function's source, and that should pinpoint the problem.

pre21:04:37

let me try.

pre21:04:42

however the top error is different:

Debugger entered--Lisp error: (void-function cider--region-for-defun-at-point)
  cider--region-for-defun-at-point()
  ad-Advice-cider-eval-defun-at-point((closure (t) (&optional debug-it) "Evaluate the current toplevel form, and print result in the minibuffer.\nWith DEBUG-IT prefix argument, also debug the entire form as with the\ncommand `cider-debug-defun-at-point'." (interactive "P") (let ((inline-debug (eq 16 (car-safe debug-it)))) (if debug-it (progn (if (derived-mode-p (quote clojurescript-mode)) (progn (if (y-or-n-p ...) (progn ...)) (user-error "The debugger does not support ClojureScript"))) (if inline-debug (progn (cider--prompt-and-insert-inline-dbg))))) (cider-interactive-eval (if (and debug-it (not inline-debug)) (progn (concat "#dbg\n" (cider-defun-at-point)))) nil (cider-defun-at-point (quote bounds))))) (4))
  apply(ad-Advice-cider-eval-defun-at-point (closure (t) (&optional debug-it) "Evaluate the current toplevel form, and print result in the minibuffer.\nWith DEBUG-IT prefix argument, also debug the entire form as with the\ncommand `cider-debug-defun-at-point'." (interactive "P") (let ((inline-debug (eq 16 (car-safe debug-it)))) (if debug-it (progn (if (derived-mode-p (quote clojurescript-mode)) (progn (if (y-or-n-p ...) (progn ...)) (user-error "The debugger does not support ClojureScript"))) (if inline-debug (progn (cider--prompt-and-insert-inline-dbg))))) (cider-interactive-eval (if (and debug-it (not inline-debug)) (progn (concat "#dbg\n" (cider-defun-at-point)))) nil (cider-defun-at-point (quote bounds))))) (4))
  cider-eval-defun-at-point((4))

pre21:04:22

the error points to cask's 0.12.0 cider source.

malabarba21:04:24

You have an advice there

pre21:04:31

I was wondering too.

pre21:04:42

how can I find who added that?

malabarba21:04:06

C-h f cider-eval-defun-at-point

malabarba21:04:13

depending on your Emacs version

malabarba21:04:22

should give you a link to see the advice

malabarba22:04:44

where was it?

pre22:04:46

I removed it from my dep

pre22:04:53

Do you want me to file a bug?

malabarba22:04:27

It might be fixed in the snapshots

malabarba22:04:40

but even then, it's a bug that it's not tagged stable yet

pre22:04:46

Ok, thanks for your help.

pre22:04:02

I can’t live without cider debug.