Fork me on GitHub
#cider
<
2020-06-30
>
gon14:06:59

Updated to latest Melpa and now when I cider jack-in I get

gon14:06:02

ERROR: Unhandled REPL handler exception processing message {:nrepl.middleware.print/stream? 1, :nrepl.middleware.print/print cider.nrepl.pprint/pprint, :nrepl.middleware.print/quota 1048576, :nrepl.middleware.print/buffer-size 4096, :nrepl.middleware.print/options {:right-margin 70}, :op init-debugger, :session e83ad834-3874-48b1-afe7-be93cac01ca7, :id 6} java.lang.ClassNotFoundException: com.sun.javadoc.ClassDoc, compiling:(cider/nrepl/inlined_deps/orchard/v0v5v10/orchard/java/legacy_parser.clj:1:1)

bozhidar20:06:13

I don’t think we changed anything in that part of the code recently. Seems like some built-in JDK class is missing, but I have no idea why that started happening for you after a CIDER update.

gon08:07:37

Obviously com.sun.javadoc.ClassDoc is present, within tools.jar.... starting lein repl in a separated process and then cider-connect there are no exceptions thrown....

gon08:07:25

tryed to cider jack-in in a deps.edn project and it works fine.... so the problem seems restricted to lein projects...

gon14:06:23

Java jdk 8

pmooser14:06:46

Guys, I've been using cider forever, but I feel like I haven't learned anything new about it in a long time. Can I ask for some guidance with cider-connect-clj&cljs ? My setup is ... I have a JVM instance which I usually connect to with cider-connect ... but I also have a shadow-cljs instance (for my cljs builds), and I've never ever used a cljs repl via cider. Is it possible to connect this way to two separate processes (ie, one via the JVM and one via shadow-cljs) ?

nsaritzky17:06:14

I'm trying to use Cider with Clojurescript, but none of the interactions are working. I'm getting a "No cljs REPLs in the current session" message, though the REPL itself is working just fine. Does anyone have any insight? I'm using Shadow-CLJS connected to a browser.

nsaritzky19:06:23

Figured out it's not connect the session to my buffers automatically.

euccastro12:07:42

that happens to me before I have loaded the page that includes the compiled cljs in my browser

euccastro12:07:24

before that, the REPL is considered a clojure one. once you load the code and figwheel (or similar) connects, the REPL becomes a cljs one and cider will know to use that for cljs interactions. HTH!

nsaritzky14:07:01

Hmm, that hasn't been happening for me. I don't know why. At least I know how to deal with it, for now.

euccastro16:07:07

oh, maybe that's because I'm serving my page at a different port than figwheel expects. I guess I could set :open-url or something, but it no longer bothers me once I've found out the cause

papachan22:06:01

@nsaritzky i suggest you to use a .dir-locals.el at your project directory where it contains all the options you need to open a new repl with shadow.