Fork me on GitHub
#cider
<
2019-11-02
>
yuhan02:11:25

Yeah, the root cause seems to be Clojure side of things which throws an unhandled NPE, causing cider-stacktrace to error out on some text formatting functions.

yuhan02:11:56

It's proving very hard to track down, I was just wondering if it's some odd configuration or setup on my end or if everyone else experiences it too

bozhidar06:11:19

I’ve never encountered this.

yuhan08:11:46

I reproduced it on a clean installation of Cider jacked into an empty Lein project:

;; CIDER 0.24.0snapshot, nREPL 0.6.0
;; Clojure 1.10.1, Java 12.0.1

yuhan08:11:34

evaluate #dbg (inc (inc 0)) and press q

yuhan08:11:53

1. Unhandled java.lang.NullPointerException
   (No message)

              Matcher.java: 1770  java.util.regex.Matcher/getTextLength
              Matcher.java:  416  java.util.regex.Matcher/reset
              Matcher.java:  253  java.util.regex.Matcher/<init>
              Pattern.java: 1133  java.util.regex.Pattern/matcher
                  core.clj: 4856  clojure.core/re-matcher
                  core.clj: 4886  clojure.core/re-matches
                  core.clj: 4886  clojure.core/re-matches
                 debug.clj:  598  cider.nrepl.middleware.debug/instrument-and-eval
                 debug.clj:  591  cider.nrepl.middleware.debug/instrument-and-eval
                  Var.java:  384  clojure.lang.Var/invoke
                  main.clj:  437  clojure.main/repl/read-eval-print/fn
                  main.clj:  437  clojure.main/repl/read-eval-print
                  main.clj:  458  clojure.main/repl/fn
                  main.clj:  458  clojure.main/repl
                  main.clj:  368  clojure.main/repl
               RestFn.java:  137  clojure.lang.RestFn/applyTo
                  core.clj:  665  clojure.core/apply
                  core.clj:  660  clojure.core/apply
                regrow.clj:   18  refactor-nrepl.ns.slam.hound.regrow/wrap-clojure-repl/fn
               RestFn.java: 1523  clojure.lang.RestFn/invoke
    interruptible_eval.clj:   79  nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:   55  nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:  142  nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn
                  AFn.java:   22  clojure.lang.AFn/run
               session.clj:  171  nrepl.middleware.session/session-exec/main-loop/fn
               session.clj:  170  nrepl.middleware.session/session-exec/main-loop
                  AFn.java:   22  clojure.lang.AFn/run
               Thread.java:  835  java.lang.Thread/run

yuhan08:11:04

it appears that (.getMessage e) in instrument-and-eval returns nil

macrobartfast06:11:30

is there a way to get clojure docs for a symbol in emacs? cider-grimoire doesn't seem to work... I've found cider-clojuredocs at https://github.com/clojure-emacs/cider/blob/master/cider-clojuredocs.el but it's not available as a command in my emacs... is there a way to get this functionality?

jumar06:11:52

@U0X9N9ZK5 I have cider-clojuredocs as a command; in spacemacs under , h d

m0smith23:11:46

I checked there and CIDER is connecting to the remote port ok, but the cider-repl buffer is not attached to it

bozhidar18:11:03

The first ever “State of CIDER” survey is out https://metaredux.com/posts/2019/11/02/state-of-cider.html

cider 8
👍 8
pez19:11:55

Following!

justinbarclay00:11:46

Filling it out, but I think two blank questions made it into the form: Screen Shot 2019-11-03 at 5.07.38 PM

Joe Littlejohn21:11:38

Hey, in recent versions of Cider, cider-restart no longer kills the REPL and launches it again. Now it just disconnects and reconnects to the same REPL. Since hot loading of dependencies is also disabled these days, what's the easiest way to bring a new library to the classpath after changing my project.clj?

dpsutton21:11:55

there's a sesman-restart that does what you want

Joe Littlejohn22:11:08

Cool, thanks! It was nice that cider-restart had some feedback in the mini buffer to show that the new REPL was starting, but I'll definitely use sesman-restart :thumbsup:

dpsutton22:11:38

yeah i'm not sure what the benefit or purpose of cider-restart is now ¯\(ツ)

Joe Littlejohn22:11:30

Sesman it is :thumbsup: