Fork me on GitHub
#cider
<
2017-06-13
>
jasonjckn20:06:22

i’m calling cider-interactive-eval in lisp , but it doesn’t popup exception with stack trace

jasonjckn20:06:27

instead it gets printed to messages(

mgrbyte21:06:20

@jasonjckn are you invoking cider-interactive-eval via call-interactively ?

jasonjckn21:06:33

cider-interactive-eval

jasonjckn21:06:58

well the lambda is bound to a hotkey

mgrbyte22:06:41

jasonjckn: if you want to share that keysetup/lambda, I could try to re-produce. I expect it needs to be wrapped with call-interactively.

jasonjckn22:06:49

(spacemacs/set-leader-keys-for-major-mode 'clojure-mode
    "eg" (lambda ()
           (interactive)
           (save-buffer)
           (cider-interactive-eval  "(try
                                     (if (resolve 'user/stop!) (@(resolve 'user/stop!)))
                                     (require 'clojure.tools.namespace.repl)
                                     (clojure.tools.namespace.repl/refresh :after 'user/start!))
")))

mgrbyte22:06:03

within cider.el itself, all uses of cider-interacive-eval are within a an emacs-lisp interactive function (one that has (interactive ..) at the head of the fn - so yep, wrap with call-interactively should work.

mgrbyte22:06:59

although... you have interactive at the top of your lambda there so should be no need :s

mgrbyte22:06:44

(i don't use spacemacs here, so sorry can't re-produce)

jasonjckn22:06:05

maybe that causes call-interactively