This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-24
Channels
- # announcements (1)
- # aws (140)
- # beginners (41)
- # calva (47)
- # cider (43)
- # clj-kondo (36)
- # clojure (178)
- # clojure-europe (12)
- # clojure-gamedev (2)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-russia (3)
- # clojure-spec (37)
- # clojure-uk (97)
- # clojurescript (173)
- # core-async (16)
- # cursive (18)
- # data-science (2)
- # datascript (6)
- # datomic (32)
- # dirac (16)
- # duct (16)
- # events (2)
- # figwheel-main (7)
- # fulcro (8)
- # graalvm (18)
- # immutant (3)
- # joker (2)
- # kaocha (8)
- # nrepl (6)
- # nyc (2)
- # off-topic (62)
- # quil (3)
- # re-frame (18)
- # reitit (6)
- # ring-swagger (1)
- # shadow-cljs (119)
- # spacemacs (4)
- # specter (2)
- # tools-deps (10)
- # vim (58)
- # xtdb (9)
Hey cider-maniacs. I'm using spacemacs and cider and I'm an emacs ignoramus. I'm wondering if there is a standard technique for refreshing my dependencies after I update my project.clj (or deps.edn) without quitting spacemacs and starting it up again (as I'm currently doing). cider-restart
doesn't seem to do it. Thanks in advance for any help.
You need to dump the process and restart. Killing emacs accomplishes that but is a bit bigger fly swatter than what is required
Just as an FYI - cider-restart
restarts only the connection to the nREPL server, not the nREPL server itself.
Hi, I am new clojure and try to set it up with emacs but it doesnt appear in the package list. I am using the clojure friendly config from the book for the brave and true and also tried to install via the Melpa repo instructionshttp://stable.melpa.org/#/cider as well as the additions mentioned here https://docs.cider.mx/cider/basics/installation.html it just does not appear. Using it on windows 10. any help appreciated!
How do I check this, I am new to emacs
C-h f
describes functions, and C-h k
keybindings, those are your most helpful friends for starting out on Emacs 🙂
Many thanks 🙂 Its value is (("gnu" . "
That is the strange thing, I have it in my ini file
Honestly I don't like that Brave Clojure starts out with asking people to learn Emacs, you should use whatever editor you're already using and comfortable with
It definetly has not only with Emacs. It is a breeze on linux or Mac and installing clojure on Win was already complicated due to the windows security rules and powershell etc
The emacs directory is in the user folder and on in AppData Roaming I guess this could be the reason
@ch the Emacs setup in BraveClojure is really out of date. Ignore that setup and use the excellent docs at https://docs.cider.mx/cider/basics/installation.html
I used the one from the github repo which was updated some month ago. Will check the above docs many thanks!
Any evil users here? If so, have you somehow setup some cider-eval for visual selection?
but you could always define your own:
(evil-define-key 'visual clojure-mode-map ... 'cider-eval-region)
The visual selection actually works out of the box with C-c C-v r
, but I didn't switch the namespace so I thought it wasn't. My bad.
When running cider-jack-in and choosing clojure-cli (deps) 1. is it necessary to specifyi nrepl and any other dependcies for this to work? The docs suggest no. 2. how would one specify any devevelopment dependices? is it jusing an alias like :dev ? does cider know to look for specific keyworks or do i have to specify them when running cider jack in.
I believe with Cider 0.23 onwards it should prompt you for aliases to run. Otherwise you can create a dir-local.el
file, for example https://practicalli.github.io/blog/posts/cider-jack-in-to-clojure-cli-projects-from-spacemacs/
https://docs.cider.mx/cider/config/project_config.html check out cider-clojure-cli-global-options
there's an example of what you want right there
and to answer your first question, no its not necessary. if you check the *Messages*
buffer it will show you the exact command used and you'll see all of the necessary deps injected automatically
i've been wanting to make a ticket to show the startup command and cljs repl incovation in the repl alongside the startup banner to show that CIDER does no magic at all and just starts nrepl for you