Fork me on GitHub
#cider
<
2020-08-26
>
ag03:08:30

I keep discovering CIDER debugger gotchas. It seems it doesn't break in partial functions for some reason, e.g:

(defn foo [a b c]
   #dbg
   ,,,
  )
  
(def bar (partial foo :something))
breakpoint gets ignored

jumar09:08:48

This works for me just fine:

(defn pp [x y]
  #dbg (+ (inc x) y))

(def p (partial pp 10))

(p 10)

ag16:08:01

Interesting. thanks for trying it out. I'm gonna keep an eye. Maybe it's my local setup.

andrea.crotti14:08:55

mm something funny going on after the last upgrade

[nREPL] Starting server via /usr/local/bin/lein update-in :dependencies conj \[nrepl\ \"0.8.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.5.1\"\] -- update-in :plugins conj \[com.billpiel/sayid\ \"0.0.19\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.5.0\"\] -- update-in :plugins conj \[com.billpiel/sayid\ \"0.0.18\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.25.3\"\] -- repl :headless :host localhost
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Could not find artifact com.billpiel:sayid:jar:0.1.0-SNAPSHOT in clojars ()

andrea.crotti14:08:15

two different versions of sayid in the command executed, and the one it complains about it's another one entirely

andrea.crotti14:08:36

lein deps works though, it only fails when I do cider-jack-in-clj&cljs

andrea.crotti14:08:16

where is sayid even added anyway? I can't find references in cider or cider-nrepl

dpsutton14:08:40

there's a CIDER plugin for sayid that you might have installed. its a bit like refactor where it injects itself

andrea.crotti14:08:42

ah yes ok I removed it, let's see if it works now

andrea.crotti14:08:52

so somehow it was injecting itself twice at least

andrea.crotti14:08:43

ah yes it's gone now thanks, I wasn't really using it anyway

dpsutton14:08:13

are you on doom or spacemacs?

andrea.crotti14:08:35

ah cool thanks, and neither my own config

andrea.crotti14:08:55

that has grown for more than 10 years, probably doom or spacemacs would be better though tbf 😄

andrea.crotti14:08:08

but I'm lazy to change now

dpsutton14:08:26

nah i wouldn't change. often people using those don't know what's gone into the clojure layer which is why i asked

practicalli_john17:08:33

I know whats in the Spacemacs clojure layer, as I contributed some of it 🙂 Sayid is optional in Spacemacs develop and off by default

dpsutton17:08:08

oh awesome!

practicalli_john17:08:40

clj-refactor is also optional in Spacemacs develop and off by default. Plexus added that a while back

dpsutton17:08:02

gotcha. i thought i remember more things being added by default

practicalli_john20:08:15

Spacemacs clojure layer used to be kitchen sink... but has many more optional packages which are off by default. The Spacemacs clojure layer has a comprehensive set of vim-style key bindings for CIDER, thanks to me :) Doom includes clj-refactor by default, but does not include sayid. The vim key bindings used to be very limited, but seems more have been added in the last few months.

andrea.crotti14:08:01

yeah I don't like to not really know how my editor is configured

neilyio22:08:33

Is it possible to get cider-enlighten-mode working for ClojureScript? Or is it straight up incompatible?