Fork me on GitHub
#cider
<
2021-02-23
>
afleck16:02:42

anyone use lispy and cider? I’m having trouble with lispy--describe-inline , it throws with the error

Unhandled java.lang.IllegalArgumentException
   Cannot open <nil> as a Reader.

                    io.clj:  288  
                    io.clj:  288  
                    io.clj:   69  
                    io.clj:  102  
                    io.clj:   86  
               RestFn.java:  410  clojure.lang.RestFn/invoke
             analyzer.cljc: 4407  cljs.analyzer$parse_ns$fn__2802/invoke
             analyzer.cljc: 4390  cljs.analyzer$parse_ns/invokeStatic
             analyzer.cljc: 4369  cljs.analyzer$parse_ns/invoke
             analyzer.cljc: 4380  cljs.analyzer$parse_ns/invokeStatic
             analyzer.cljc: 4369  cljs.analyzer$parse_ns/invoke
                 repl.cljc:  604  cljs.repl$load_file$fn__6689/invoke
                 repl.cljc:  601  cljs.repl$load_file/invokeStatic
                 repl.cljc:  593  cljs.repl$load_file/invoke
                 repl.cljc:  761  cljs.repl$fn__6740$self__6742/invoke
                  AFn.java:  165  clojure.lang.AFn/applyToHelper
                  AFn.java:  144  clojure.lang.AFn/applyTo
                  core.clj:  665  clojure.core/apply
                  core.clj:  660  clojure.core/apply
                 repl.cljc:  745  cljs.repl$wrap_self$g__6719/invoke
       piggieback_impl.clj:  287  cider.piggieback/do-eval/fn
                  AFn.java:  152  clojure.lang.AFn/applyToHelper
                  AFn.java:  144  clojure.lang.AFn/applyTo
                  core.clj:  665  clojure.core/apply
                  core.clj: 1973  clojure.core/with-bindings*
                  core.clj: 1973  clojure.core/with-bindings*
               RestFn.java:  425  clojure.lang.RestFn/invoke
       piggieback_impl.clj:  266  cider.piggieback/do-eval
       piggieback_impl.clj:  265  cider.piggieback/do-eval
       piggieback_impl.clj:  323  cider.piggieback/evaluate
       piggieback_impl.clj:  321  cider.piggieback/evaluate
       piggieback_impl.clj:  347  cider.piggieback/load-file
       piggieback_impl.clj:  346  cider.piggieback/load-file
                  Var.java:  384  clojure.lang.Var/invoke
       piggieback_impl.clj:  354  cider.piggieback/wrap-cljs-repl/fn/fn/fn
       piggieback_impl.clj:  201  cider.piggieback/enqueue/fn
                  AFn.java:   22  clojure.lang.AFn/run
               session.clj:  202  nrepl.middleware.session/session-exec/main-loop/fn
               session.clj:  201  nrepl.middleware.session/session-exec/main-loop
                  AFn.java:   22  clojure.lang.AFn/run
               Thread.java:  748  java.lang.Thread/run
this is cider and lispy 20210121.926

blak3mill3r21:02:23

I use those two things, but I'm not on the bleeding edge. However I feel like I've seen this exception before... Question for you: Do you "jack in" or do you control your own classpath? I recall that lispy has some funny business with its own dependencies

blak3mill3r21:02:05

I think it expects to have pomegranate provided, so that lispy (the clojure part of lispy) can update your classpath dynamically

blak3mill3r21:02:24

to add compliment and me.raynes/fs

afleck21:02:34

jack in but overridden sometimes. I fixed plain clj projects not having pomegranate on the classpath, but it does not change the mixed clj/cljs project difficulties

blak3mill3r21:02:33

I control the classpath, rather than using jack-in, and I know I had some snags with lispy

blak3mill3r21:02:58

like, if pomegranate isn't available, some of the lispy features break... pretty sure lispy-describe-inline is one that broke for me

afleck21:02:29

hmmm okay. I know cljs has a separate dependency injection. so maybe I will try that.

blak3mill3r21:02:46

also rather than messing with the emacs debugger, you could try instrumenting the cljs part

blak3mill3r21:02:02

like from that stack trace it seems that it is trying to parse a ns form when it attempts to open nil

blak3mill3r21:02:12

could be that there's some subtle problem with one of your ns forms?

blak3mill3r21:02:30

if you knew which namespace it's handling in that call to parse_ns on 4407

blak3mill3r21:02:35

that might point in the right direction

afleck16:02:14

been trying to poke around the emacs debugger but don’t really have much experience

dpsutton16:02:51

try m-x nrepl-toggle-message-logging, try it again, and then open up the messages buffer created for these messages. you can see what its asking the nrepl server to evaluate and see if it makes sense

afleck20:02:47

all it says is => nil. I’ve narrowed it down to being a problem with clj/cljs projects. it works fine in cljs buffers, returns nil in clj buffers, and throws with that error in cljc buffers

Jimmy Miller18:02:46

Anyone else have any issues with cider-doc in a shadow-cljs? It is working fine in my clojure repl and in a different project that uses weasel. It isn’t even working for built-in clojure functions. Toggled messages and just see a ("done" "no-eldoc"). Any ideas?