This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-17
Channels
- # announcements (8)
- # atom-editor (8)
- # aws (1)
- # babashka (96)
- # beginners (128)
- # calva (7)
- # cider (12)
- # cljsrn (1)
- # clojure (75)
- # clojure-europe (28)
- # clojure-hamburg (2)
- # clojure-italy (7)
- # clojure-nl (7)
- # clojure-norway (3)
- # clojure-uk (13)
- # clojurescript (26)
- # conjure (2)
- # cursive (18)
- # data-science (7)
- # datalog (21)
- # datomic (9)
- # duct (15)
- # expound (29)
- # figwheel-main (14)
- # fulcro (59)
- # helix (4)
- # jobs (2)
- # kaocha (19)
- # leiningen (15)
- # luminus (4)
- # malli (57)
- # meander (2)
- # off-topic (2)
- # pathom (12)
- # pedestal (8)
- # re-frame (53)
- # reitit (9)
- # remote-jobs (1)
- # shadow-cljs (64)
- # spacemacs (1)
- # specter (2)
- # tools-deps (12)
- # tree-sitter (2)
- # vim (11)
- # xtdb (17)
Might be a silly question but how does one add dependencies, without killing cider and starting it up again. I can't seem to get it to work with cider-restart
The most reliable way I found was to restart the cider repl. I use deps.edn projects and stop/starting a repl only takes a couple of seconds.
@U05254DQM I was looking at your guide actually https://practicalli.github.io/spacemacs/refactor/clj-refactor/managing-library-dependencies.html
does cider-restart
usually work? 😮
It seems to depend on the project and the version of CIDER / clj-refactor. I found clj-refactor unreliable and I beleive hot loading of dependencies in a running REPL was disabled, as it used to cause a lot of issues at one time. Not sure if it was re-enabled.
Adding new namespaces works reliably without restarting the REPL, cider-ns-reload
or cider-ns-refresh
, but I've always stopped/started the REPL when adding a library dependency.
cider-restart
as I understand it only restarts the connection to the REPL and not the REPL itself. So I use cider-quit
and cider-jack-in-clj
For example, if you start a REPL from cider-jack-in-clj and evaluate code, after a cider-restart
those evaluations will still be there. At least that is what happened when I tested this.
I use sesman-restart after add dependencies, it works for me
Ohhhh @U018XDZJ4RG What's sesman actually? :o
@UUSQHP535 sesman is the session manager that is used with Cider. It can be used for managing all connections to the REPL. sesman-start provides a menu to choose a Clojure or ClojureScript REPL to jack-in to or connect to.
sesman has a browser to show all current connections
https://develop.spacemacs.org/layers/+lang/clojure/README.html#managing-repl-connections
,'
calls sesman-start in the develop branch of Spacemacs for a while now along with the , m
menu for managing connections