This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-20
Channels
- # aleph (11)
- # announcements (3)
- # babashka (35)
- # babashka-sci-dev (28)
- # beginners (29)
- # calva (51)
- # cider (33)
- # clj-kondo (26)
- # clj-on-windows (1)
- # clojure (40)
- # clojure-austin (1)
- # clojure-europe (47)
- # clojure-nl (9)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (69)
- # conjure (30)
- # cursive (7)
- # data-science (9)
- # datomic (2)
- # etaoin (10)
- # events (2)
- # fulcro (1)
- # graalvm (1)
- # gratitude (6)
- # helix (16)
- # honeysql (20)
- # hyperfiddle (14)
- # inf-clojure (2)
- # jobs (1)
- # jobs-discuss (12)
- # kaocha (9)
- # leiningen (2)
- # lsp (4)
- # malli (8)
- # music (9)
- # off-topic (12)
- # pathom (10)
- # portal (14)
- # practicalli (15)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (4)
- # sci (37)
- # shadow-cljs (16)
- # sql (8)
- # tools-deps (6)
- # vim (6)
- # xtdb (21)
another question, about multiple REPLs: how do I connect to an external REPL and have it be a "sibling" connection?
when I try and run cider-connect-sibling-cljs
it attempts to connect to the same port
like what I need is the ability to connect another REPL in the session but allow me to choose a hostname/port
now, I have two REPLs in the session. when I do cider-eval-last-sexp
in a .cljc file it evals in... both REPLs?
I dabbled in a bit of cljs a few years ago and found this exact same issue - it seems that Cider assumes you want to send the form to all applicable repls all the time
Calva has (I think) a more sensible approach of allowing you to toggle between clj / cljs via a button
if I want to eval the whole ns, it makes sense to do it in both. but per-form I often have an idea of specifically where I want to run it
I have a commit on my local Cider which tried to emulate this Calva behaviour - let me try and push it to Github if you want to try it out
hmm, I use Doom emacs now, which uses straight.el under the hood - it uses git repos for everything and makes declaring local packages really easy
hmmm. I'm 2 yaks deep rn - gonna leave Doom emacs on the shelf for the morning 😄
I used Spacemacs back in 2018, looking at my old dotfiles I had a custom "layer" with (:location local) symlinks to my local copy of Cider - not sure if things have changed in the meantime
Of course there's always the least elegant solution of sticking a
Cwith-eval-after-load 'cider-connection
... (monkey patched code) ...
)
in your init file 🙂ok, I think I can actually solve my problem another way: modifying the nrepl middleware passed to the jack in command when I start the clojure repl
all marking it risky does is ensures that I have to answer the prompt every time I open a new buffer, rather than saving my preference after I have reviewed it once
probably the pref can be saved somewhere, worth reading the docs carefully IIRC I hacked my way to disable this feature 🤷
I found the docs to do it via M-x customize
. it just seems like such an anti-feature. security theatre more than anything else