This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-12
Channels
- # aleph (1)
- # aws (2)
- # babashka (44)
- # beginners (178)
- # biff (12)
- # calva (22)
- # chlorine-clover (60)
- # cider (1)
- # clj-kondo (9)
- # cljdoc (6)
- # cljs-dev (37)
- # cljss (2)
- # clojure (43)
- # clojure-europe (3)
- # clojure-finland (23)
- # clojure-italy (1)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (56)
- # clojure-uk (148)
- # clojuredesign-podcast (1)
- # clojurescript (11)
- # conjure (5)
- # core-async (22)
- # cursive (9)
- # datascript (5)
- # datomic (4)
- # duct (8)
- # emotion-cljs (2)
- # figwheel-main (15)
- # fulcro (53)
- # graalvm (68)
- # helix (2)
- # jackdaw (1)
- # kaocha (9)
- # lambdaisland (1)
- # malli (10)
- # meander (2)
- # news-and-articles (1)
- # observability (12)
- # off-topic (17)
- # pathom (1)
- # pedestal (25)
- # practicalli (1)
- # protojure (4)
- # re-frame (2)
- # reagent (57)
- # reitit (1)
- # releases (2)
- # shadow-cljs (69)
- # specter (6)
- # tools-deps (10)
- # vim (16)
- # vscode (4)
- # yada (3)
I started a deps.edn project finally and trying to get a similar workflow I had with lein repl. With lein repl it had an :init-ns
option where I would start my whole app and I can just use cider-connect
and have the whole context loaded already to eval anything anywhere in the codebase immediately.
From what I'm seeing from all the docs, you should use cider-jack-in
or have a :cider-clj
alias but this doesn't bring in any context of the app, basically just giving you a repl with nothing loaded.
I've worked around this by having a main function from my dev profile that will launch a repl that I can connect to and everything is already started. I feel I spent a bit too much time to arrive to this and there may be an easier way. What are you guys doing?
(defn -main [& args]
(spit ".nrepl-port" 39000)
(nrepl-server/start-server :port 39000
:handler (apply nrepl-server/default-handler
(map resolve (concat
['refactor-nrepl.middleware/wrap-refactor]
cider.nrepl/cider-middleware))))
(core/-main args))