Is there a way in Cider to avoid recieving error messages in the REPL buffer. Evaluation is done in the source code buffer and code is calling a Spark data source, which is returning errors that slow down or kill Emacs due to the size. I'll try putting the REPL buffer in fundamental-mode... or writing code that doesnt cause errors 🙂
About https://docs.cider.mx/cider/0.26/caveats.html#injecting-dependencies-and-leiningen-pedantic-abort-mode, why are those dependencies not a fork with unique names? (Perhaps generated with MrAnderson?)
@frozenlock Because nREPL won't work if you inline it. 😄
That's the only dependency causing an issue with Lein, simply because Lein also depends on nREPL.
Ah I see. Is that a limitation of MrAnderson, nREPL.... both?
Understood, thank you very much
CIDER seems to be automatically adding :require
-s to my (ns...)
forms... Anybody know how to turn that off?
That's coming from clj-refactor.el
. Let me find the defcustom for it.
Well, depends on your perspective. The inlining changes the namespaces of the library, which means it can't interface with anything external when inlined . So, Lein can't invoke it, external middleware won't work and so on.
Set `cljr-add-ns-to-blank-clj-files` to nil.
Thanks @bozhidar. Just want to make sure I have the right feature. I like that CIDER will add (ns app.product-screen)
when I create app/product_screen.clj
. I don't want this to go away.
My issue is that if I've previously done a (:require [app.product-screen :as ps])
, something is "remembering" the ps
alias and trying to automatically add [app.product-screen :as ps]
to the (:require ...)
form when I type ps/foo
. This is the behavior I'd like to go away.
I hope that makes sense, thanks for the tip.
Ah, my bad.
It's another clj-refactor feature, so it's not coming from CIDER.
I'm guessing it's this one https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L63
I don't use clj-refactor myself, so I never remembered what does what exactly.
Cider can easily add the namespace to a file using the ns
snippet, so along as the REPL is running (and why would it not be)
https://practicalli.github.io/spacemacs/clojure-projects/adding-files.html#adding-a-namespace
I found enough refactoring in clojure-mode that I rarely use clj-refactor. Thanks to @bozhidar and team for adding all these to clojure-mode