This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-15
Channels
- # announcements (27)
- # architecture (15)
- # aws (2)
- # babashka (5)
- # beginners (77)
- # calva (42)
- # cider (22)
- # clj-kondo (47)
- # cljfx (7)
- # clojure (66)
- # clojure-australia (1)
- # clojure-europe (32)
- # clojure-france (10)
- # clojure-israel (2)
- # clojure-italy (1)
- # clojure-nl (8)
- # clojure-uk (53)
- # clojurescript (29)
- # conjure (28)
- # core-async (2)
- # cursive (26)
- # data-science (1)
- # datascript (11)
- # datomic (33)
- # emacs (4)
- # fulcro (5)
- # girouette (3)
- # helix (1)
- # jobs (2)
- # leiningen (17)
- # luminus (2)
- # malli (15)
- # music (2)
- # off-topic (51)
- # pathom (3)
- # rdf (91)
- # remote-jobs (1)
- # reveal (7)
- # sci (6)
- # shadow-cljs (10)
- # spacemacs (3)
- # sql (23)
- # tools-deps (52)
- # uncomplicate (2)
- # vim (3)
- # xtdb (9)
Is it possible to get a fresh prompt without deleting your current input? Like in bash, where if you hit ctrl-c before you finish the command, you immediately get a fresh prompt to type into?
How could we limit the size of cider REPL buffer?
In spacemacs, when the buffer is too big, emacs becomes irresponsive
or maybe there is a way not to write anything to the REPL buffer?
Or other tips and tricks
I am on MacOs
cider-repl-buffer-size-limit is set to: 100
cider-repl-buffer-size-limit is set to: 100
cider-print-buffer-size is set to: 4096When an exception gets thrown in my clojure process, it takes "a while" (multiple seconds) for the cider exception window to pop up.
Ok, I went and updated to the most recent middleware and nrepl versions, and that seems OK.
It would be cool if there were an easy way to figure out what versions to use without reading project.clj files for each project.
I have a question concerning pomegranate: I added the following code in ~/.lein/profiles.clj: {:user {:dependencies [[clj-commons/pomegranate "1.2.0"]] :injections [(defn add-dependency [dep-vec] (require 'cemerick.pomegranate) ((resolve 'cemerick.pomegranate/add-dependencies) :coordinates [dep-vec] :repositories (merge @(resolve 'cemerick.pomegranate.aether/maven-central) {"clojars" "https://clojars.org/repo"})))]}} (adapted from plexus' answer here: https://clojureverse.org/t/how-to-use-a-dependency-from-clojure-repl-without-starting-a-lein-project/1596/5 When I start a lein repl, the function is now available. In a cider repl however, it is not known in the user namespace. What am I doing wrong?
@pmooser As far as I know, if you don't force any particular versions yourself, CIDER requests the exact versions it wants when used with cider-jack-in-clj
. It even shows you the exact command line it uses to launch lein
, boot
, clj
or whatever tool you use to launch your environment, which includes the middleware an nrepl versions it's requesting.
hey folks!! I have a little issue using clj-refactor
from within cider
. Instead of jacking-in from cider, I am running a repl from the command line and then cider-connect
from within cider to it.
As soon as I try to use clj-refactor
though it keeps telling me that I might have forgotten to install the nrepl-refactor
middleware. I had this in my ~/.clojure/deps.edn
:
:cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.22.4"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
I thought that adding refactor-nrepl.middleware/wrap-refactor
to the --middleware
s would solve the issue but it seems that it is not ... can anyone help please ? thanks 🙏if you start a new project with an empty deps file and then cider-jack-in, it will show the jack in string its using. you can mimic that to ensure you're starting up the way CIDER needs to.
oh ok ... so that I can pick up the command line arguments you mean 👍 fair point!! thanks a lot @dpsutton I will give that a shot
yeah. that shows what it would ideally look like. i suspect you need the refactor dep in your extra deps and then the middleware in the main opts