This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-26
Channels
- # announcements (4)
- # babashka (8)
- # beginners (75)
- # calva (26)
- # cider (33)
- # circleci (5)
- # clojure (36)
- # clojure-dev (2)
- # clojure-europe (25)
- # clojure-nl (4)
- # clojure-spec (38)
- # clojure-uk (47)
- # clojurescript (15)
- # cloverage (2)
- # conjure (64)
- # core-async (41)
- # cursive (13)
- # data-science (2)
- # datalog (16)
- # datascript (22)
- # datomic (9)
- # duct (2)
- # emacs (81)
- # figwheel-main (1)
- # fulcro (4)
- # jobs (2)
- # jobs-discuss (29)
- # kaocha (3)
- # meander (11)
- # membrane (21)
- # off-topic (1)
- # portal (1)
- # re-frame (1)
- # reitit (1)
- # releases (2)
- # remote-jobs (31)
- # shadow-cljs (26)
- # specter (5)
- # sql (26)
- # tools-deps (19)
- # vim (12)
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 ignoredThis works for me just fine:
(defn pp [x y]
#dbg (+ (inc x) y))
(def p (partial pp 10))
(p 10)
Running cider-test-run-ns-tests
results in a cons: Symbol's function definition is void: first
error. I don't see anything in github issues about this.
first
is a function alias for car
, afaik it doesn't exist in older versions of Emacs. what version you're using?
I use emacs from my package manager (Fedora). Usually Fedora's packages are updated rather aggressively. Suppose I could install from source.
Anyways, so cider requires emacs 27? The https://docs.cider.mx/cider/basics/installation.html say back to 25.1 is supported
I just searched, nowhere in cider codebase I see (first)
being used, must be some other dependency. run describe-function
, see maybe something advising it
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 ( )
two different versions of sayid in the command executed, and the one it complains about it's another one entirely
lein deps
works though, it only fails when I do cider-jack-in-clj&cljs
where is sayid even added anyway? I can't find references in cider or cider-nrepl
there's a CIDER plugin for sayid that you might have installed. its a bit like refactor where it injects itself
ah yes ok I removed it, let's see if it works now
so somehow it was injecting itself twice at least
ah yes it's gone now thanks, I wasn't really using it anyway
ah cool thanks, and neither my own config
that has grown for more than 10 years, probably doom or spacemacs would be better though tbf 😄
but I'm lazy to change now
nah i wouldn't change. often people using those don't know what's gone into the clojure layer which is why i asked
I know whats in the Spacemacs clojure layer, as I contributed some of it 🙂
Sayid is optional in Spacemacs develop
and off by default
clj-refactor is also optional in Spacemacs develop
and off by default. Plexus added that a while back
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.
yeah I don't like to not really know how my editor is configured
Is it possible to get cider-enlighten-mode
working for ClojureScript? Or is it straight up incompatible?
Anyways, so cider requires emacs 27? The https://docs.cider.mx/cider/basics/installation.html say back to 25.1 is supported