cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
csgero 2021-01-27T15:39:03.057900Z

looks like the latest changes in orchard around the classloader broke namespace refreshing

csgero 2021-01-27T15:39:23.058300Z

cider-ns-refresh doesn’t refresh anything

csgero 2021-01-27T15:40:34.058900Z

I tracked it down to (clojure.java.classpath/classpath-directories) returning an empty list

csgero 2021-01-27T15:42:04.059600Z

reverting to cider 0.25.5 fixes the issue

Derek Passen 2021-01-27T18:01:56.062300Z

Is there a size limit to the inspect feature? As in above a certain size, inspect will consider it a string?

Eamonn Sullivan 2021-01-27T18:06:29.065300Z

Good evening/afternoon/morning. In the last few days, I've started to see stack traces showing up in the REPL as I'm typing in the source buffer. They seem to be coming from attempts to understand what I'm typing. I had not seen these before. For example, I start typing (defprotocol SomeComponent... and the REPL will show a big red stack trace that starts with something like ERROR: Unhandled REPL handler exception processing message {:op eldoc, :ns my.component-lib, :sym SomeComponent, :session bbb91b00-f76e-43ea-9a63-ab68b1ab39f0, :id 95}... . I'm running in emacs 28.0.50 (the native compilation branch) with straight.el (so the main branch of everything), which often means I see issues earlier than most. But I don't know where to start looking. Cider says it's running:

;; Connected to nREPL server - <nrepl://localhost:42595>
;; CIDER 1.1.0snapshot, nREPL 0.8.3
;; Clojure 1.10.2, Java 1.8.0_282
Any ideas where I can start looking? The eldoc in the stack trace might be a clue, I guess.

Eamonn Sullivan 2021-01-27T18:11:06.065400Z

It does seem to happen every time I'm typing an (as yet) undefined symbol, but I don't think I should be seeing the stack trace when eldoc can't recognise the symbol.

Eamonn Sullivan 2021-01-27T18:14:32.065600Z

Ah, I think these might related to eldoc-mode, which I have turned on in Clojure buffers. If I turn it off, they stop.

Eamonn Sullivan 2021-01-27T18:17:55.065800Z

I have something like the following in my emacs config, which I probably copied from the cider docs a long time ago...

(use-package
  cider
  :hook ((clojure-mode . turn-on-eldoc-mode)
         (clojure-mode . cider-mode))

Eamonn Sullivan 2021-01-27T18:23:00.066Z

This might also be helpful:

;;  Startup: /home/linuxbrew/.linuxbrew/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} refactor-nrepl {:mvn/version "2.5.0"} cider/cider-nrepl {:mvn/version "0.25.8"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[\"refactor-nrepl.middleware/wrap-refactor\",\"cider.nrepl/cider-middleware\"]"]}}}' -M:cider/nrepl

Eamonn Sullivan 2021-01-27T18:28:18.066200Z

Even if I remove that hook, eldoc mode seems to be enabled automatically? Is that right? I have to turn it off explicitly.