cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
afleck 2021-02-23T16:11:42.012200Z

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  <http://clojure.java.io/fn|clojure.java.io/fn>
                    io.clj:  288  <http://clojure.java.io/fn|clojure.java.io/fn>
                    io.clj:   69  <http://clojure.java.io/fn/G|clojure.java.io/fn/G>
                    io.clj:  102  <http://clojure.java.io/reader|clojure.java.io/reader>
                    io.clj:   86  <http://clojure.java.io/reader|clojure.java.io/reader>
               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 <tel:202102131151|20210213.1151> and lispy 20210121.926

afleck 2021-02-23T16:12:14.012700Z

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

dpsutton 2021-02-23T16:14:51.013900Z

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

jimmy 2021-02-23T18:59:46.015700Z

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?

afleck 2021-02-23T20:19:47.015800Z

all it says is =&gt; 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

blak3mill3r 2021-02-23T21:45:23.016Z

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

blak3mill3r 2021-02-23T21:46:05.016200Z

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

blak3mill3r 2021-02-23T21:46:24.016400Z

to add compliment and me.raynes/fs

blak3mill3r 2021-02-23T21:46:25.016600Z

here

afleck 2021-02-23T21:46:34.016800Z

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

blak3mill3r 2021-02-23T21:47:33.017300Z

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

blak3mill3r 2021-02-23T21:47:58.017500Z

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

afleck 2021-02-23T21:48:29.017700Z

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

blak3mill3r 2021-02-23T21:48:46.017900Z

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

blak3mill3r 2021-02-23T21:49:02.018100Z

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

blak3mill3r 2021-02-23T21:49:12.018300Z

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

blak3mill3r 2021-02-23T21:49:30.018500Z

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

blak3mill3r 2021-02-23T21:49:35.018700Z

that might point in the right direction