This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (6)
- # babashka (2)
- # babashka-sci-dev (1)
- # beginners (74)
- # calva (3)
- # cider (33)
- # clj-kondo (19)
- # cljsrn (10)
- # clojure (75)
- # clojure-dev (11)
- # clojure-europe (39)
- # clojure-italy (1)
- # clojure-nl (1)
- # clojure-spec (4)
- # clojure-uk (6)
- # clojurescript (139)
- # code-reviews (8)
- # core-typed (7)
- # data-science (1)
- # docs (2)
- # emacs (11)
- # events (1)
- # introduce-yourself (8)
- # lsp (4)
- # malli (10)
- # off-topic (15)
- # pedestal (5)
- # podcasts (4)
- # polylith (18)
- # re-frame (6)
- # react (1)
- # reagent (18)
- # reitit (6)
- # releases (2)
- # rewrite-clj (1)
- # spacemacs (15)
- # sql (2)
- # vscode (5)
Oh, odd - I have "cider-version" - 1.3.0 (Ukraine) - however this function doesn't seem to exist for me - I wonder if there's a cider thing I need that isn't loaded or if it comes from another package?
I see here it's present in a spacemacs specific thing - I grepped cider github on master and don't see the fn
i'll peek at cider repo history, maybe it was there and removed, or its a spacemacs extra
Ah, ok. Yeah, for me it’s defined in the
clojure spacemacs layer. My bad, thought it was a CIDER built-in.
is the spacemacs clojure layer available as a standalone package? (is it clojure-mode? Mine may be outdated...)
Looks like you’d probably just use
cider-load-buffer to evaluate the full namespace?
🤷 I’m so used to the spacemacs overlay that I’m less familiar with the core CIDER commands, I guess.
it refreshes the stuff in said ns, but to actually call those things, I still need to prefix with the ns or do the (in-ns) manually - although it shouldn't be hard to extract this from the spacemacs stuff or just write a small custom function I guess 😄 - ty for the link, I'll give those two a peek
ok, this is in cider and all the spacemacs layer does:
Based on the screenshot above, it certainly seems like adding a prefix argument to
cider-load-buffer-and-switch-to-repl-buffer should do it (“Use a prefix argument to change the namespace of the REPL buffer to match the currently visited source file.“)
Oh yup, that's right - I was missing it as it didn't have a default keybind - without prefix arg, it inserts the form but doesn't hit enter, with it, it does, thank you all for the assist
Hi all - how does jack-in choose dependencies? It's pulling in com.cemeric/[email protected] which errors out on a NoSuchMethodError for some of the goog stuff in shadow-cljs when I'm using openjdk v11 (works fine on v17) - grepping, I can't find any reference to 'pomegranate' in cider repo or in my shadow-cljs (lein new re-frame reframe-stuff +cider) project. I've "fixed" it by manually setting cider-jack-in-dependencies to it's current value, but 0.4.0 swapped to 0.3.0
Nothing comes to mind.
cider.el generates a command such as
lein update-in ... repl keeping into account your cider-jack-in-dependencies etc.
What if you take that command and replace
deps :tree and run it in the terminal? The answer might be found there
but I'm curious where the dependency originates from - maybe some old file I have like a leinrc or something out of dir
My cider eval is broken. It was working fine just now but now when I do
cider-connect and enter the host and port, and then try to eval an expression or a buffer, it just hangs on showing loading in the minibuffer. How to fix this?
I don't think much has changed in this area, I'd recommend going through https://docs.cider.mx/cider/troubleshooting.html and ultimately creating a GH issue
Assuming Cider hasn't been updated since it was last working, the most likely cause is some long running Clojure code.
Suggest stop/start the REPL process and evaluate a very simple expression, e.g.
(+ 1 2)
Also try evaluate in the terminal UI for the repl, helps to identify if it's a Cider or Clojure project specific issue