This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (1)
- # announcements (9)
- # aws (11)
- # babashka (33)
- # beginners (125)
- # calva (20)
- # cider (18)
- # clj-kondo (7)
- # cljs-dev (73)
- # clojure (72)
- # clojure-europe (18)
- # clojure-italy (13)
- # clojure-nl (13)
- # clojure-uk (9)
- # clojurescript (22)
- # core-async (7)
- # cursive (1)
- # data-science (25)
- # datomic (22)
- # duct (32)
- # emacs (13)
- # graalvm (5)
- # hoplon (16)
- # juxt (6)
- # kaocha (8)
- # leiningen (3)
- # malli (11)
- # meander (12)
- # off-topic (18)
- # pathom (109)
- # pedestal (5)
- # rdf (10)
- # reagent (1)
- # reitit (12)
- # shadow-cljs (27)
- # spacemacs (5)
- # sql (9)
- # tools-deps (7)
I have big issues with cider repl buffer freezing very often. I suspect that in most cases it's related to larger chunks of output being written in the stdout (e.g. logs). I know about "clear repl buffer" but although I do that quite often it's not enough and even that doesn't help often. Can I somehow turn of all the formatting and have it only as a plain text? Or perhaps some other optimization that would help?
You can try disabling font-locking https://docs.cider.mx/cider/repl/configuration.html#_font_locking
Thanks, I've only set
setq cider-font-lock-dynamically and
cider-font-lock-max-length so far so maybe
cider-repl-use-clojure-font-lock will help. But it's not clear from docs what it actually does; it seems that setting it to nil is actually worse (old behavior)?
Is it possible to set the default Clojure REPL type for a project in a project that has both a
project.clj file? I tried to use a
.dir-locals.el file, perhaps I didnt find the right value...
I also tried
((clojure-mode . ((cider-repl-type . 'clojure-cli))))
I am restarting Emacs each time and it is asking me to load the
((clojure-mode . ((cider-jack-in-default . 'clojure-cli))))
.dir-locals.eleach time. I am assuming either I have the wrong configuration or this feature is not available at present.
Also you don't have to restart Emacs to apply dir local variables, just refresh the buffer using
Finally, I found the right syntax... The build tool name is in double quotes
I was only restarting because the darn thing wasn't working (it only takes 3 seconds to restart Spacemac on my machine, so no problem).
((clojure-mode . ((cider-preferred-build-tool . "clojure-cli"))))
It's supposed to be a symbol per the docstring -
((clojure-mode . ((cider-preferred-build-tool . clojure-cli))))
It wasnt working as a symbol 😞 I see other settings are also using strings, eg.
cider-clojure-cli-global-options so I'll stick with strings for now 🙂
Now to see if I can set the clojure repl type, i.e. to set the project to be a Clojure repl, rather than a ClojureScript or mixed repls... when using Sesman
@bozhidar the clojure-cli value didnt seem to work when I tried it as a symbol. I will try again and if it definately isnt working I'll raise an issue. Is there a variable I can use to set a project to use cider-jack-in-clj by default in the same way, for example when calling with sesman-start?
I’ve never used
sesman-start directly, so I’ll have to check what exactly does it call internally.
Hi, I'm trying to use cider to navigate to java class definitions, but I'm not able to do it. I saw that I must put the source in the classpath. There is a way to configure cider or clojure-deps to do it automatically or per project.