Fork me on GitHub
#cider
<
2020-11-23
>
practicalli12:11:30

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 ­čÖé

frozenlock15:11:15

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?)

bozhidar15:11:36

@frozenlock Because nREPL won't work if you inline it. ­čśä

bozhidar15:11:10

That's the only dependency causing an issue with Lein, simply because Lein also depends on nREPL.

neilyio17:11:00

CIDER seems to be automatically adding :require-s to my (ns...) forms... Anybody know how to turn that off?

bozhidar18:11:37

That's coming from clj-refactor.el. Let me find the defcustom for it.

bozhidar19:11:38

Set `cljr-add-ns-to-blank-clj-files` to nil.

neilyio20:11:55

Thanks @U051BLM8F. 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.

neilyio20:11:30

I hope that makes sense, thanks for the tip.

bozhidar21:11:33

Ah, my bad.

bozhidar21:11:50

It's another clj-refactor feature, so it's not coming from CIDER.

bozhidar21:11:46

I don't use clj-refactor myself, so I never remembered what does what exactly.

practicalli22:11:59

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

practicalli22:11:55

I found enough refactoring in clojure-mode that I rarely use clj-refactor. Thanks to @U051BLM8F and team for adding all these to clojure-mode

neilyio00:11:13

Thanks for looking that up for me @U051BLM8F! I didn't know where to start looking, and that fixes the issue.