This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-06
Channels
- # aleph (1)
- # announcements (2)
- # beginners (109)
- # calva (48)
- # cider (25)
- # clj-kondo (38)
- # cljdoc (13)
- # clojure (203)
- # clojure-europe (23)
- # clojure-gamedev (3)
- # clojure-nl (3)
- # clojure-uk (7)
- # conjure (2)
- # data-science (1)
- # datalog (2)
- # datomic (7)
- # deps-new (16)
- # depstar (2)
- # docker (2)
- # fulcro (67)
- # graalvm (58)
- # honeysql (16)
- # java (2)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (4)
- # lsp (82)
- # malli (23)
- # off-topic (35)
- # polylith (18)
- # practicalli (5)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (15)
- # sql (17)
- # timbre (1)
- # tools-deps (24)
- # vim (20)
- # xtdb (9)
Is it possible to fully unload cider
after a buffer has loaded, such that inf-clojure
will work without collisions? Or is it best to just find a way to avoid loading cider
in the first place, in the clj
files for which you want to use inf-clojure
?
i can't find the snippet any longer. It was largely (remove-hook 'clojure-mode-hook #'cider-mode)
to prevent buffers from pulling up cider, and then you can loop over the buffers in the buffer list and when they have cider mode active remove cider
ahahaha thanks for that, I just logged in for the first time since I wrote this question 🙂 But that's a good answer, so thank you
(defun personal/unhook-cider ()
(seq-doseq (buffer (buffer-list))
(with-current-buffer buffer
(cider-mode -1))
(remove-hook 'clojure-mode-hook #'cider-mode)))
That's a good question, I'd also like to know the answer (in my case, I'm interested in running socket REPL in some scenarios, for instance so I can have nested sessions to be used essentially as a debugger (and yes, I know cider has got an actual debugger, I just prefer this).
There isn’t a single one. But if it’s a lein project, it’ll use cider-lein-command
, cider-lein-parameters
, cider-lein-global-options
, cider-jack-in-dependencies
, cider-jack-in-lein-plugins
, and probably some others
thanks @U015KH5ENEM, it's not a lein
project, I'm trying a projectless workflow, and my repl is invoked via the clojure cli tools. The one I usually have (and can edit via the universal argument) is:
/run/current-system/sw/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} refactor-nrepl/refactor-nrepl {:mvn/version "2.5.1"} cider/cider-nrepl {:mvn/version "0.25.9"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl
but I want to add a couple more flags automaticallyI can find 3 setting mentioning clojure cli:
cider-clojure-cli-global-options
-> nil
cider-clojure-cli-command
-> clojure
cider-clojure-cli-aliases
-> nil
So I'm unsure where the big command is
in the end I was able to get what I wanted via cider-clojure-cli-global-options
! Thanks @U015KH5ENEM 🎉