This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # babashka (22)
- # beginners (31)
- # calva (4)
- # cider (26)
- # clj-kondo (10)
- # clojure (32)
- # clojure-europe (1)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-spec (16)
- # clojure-switzerland (5)
- # clojure-uk (25)
- # clojurescript (108)
- # clojutre (15)
- # code-reviews (3)
- # crux (25)
- # data-science (1)
- # datomic (92)
- # emacs (1)
- # fulcro (8)
- # graalvm (8)
- # jackdaw (8)
- # jobs (1)
- # jobs-discuss (1)
- # leiningen (6)
- # off-topic (56)
- # pathom (6)
- # pedestal (5)
- # re-frame (11)
- # remote-jobs (1)
- # shadow-cljs (4)
- # spacemacs (2)
- # sql (41)
- # tools-deps (7)
@mario.cordova.862 I’m assuming you still have some outdated deps. This error is coming from
clj-refactor, not from CIDER. Probably removing it/updating it will solve your problem.
How do people deal with an extensive logging inside cider repl buffer? It's really making my Emacs slow. And I don't even have a huge amount of data, just usual DEBUG logs from my application - wouldn't even think about it having run the repl in the terminal but Emacs/Cider seems to be pretty bad at handling larger volume of output in the buffer
@jumar I would use an external logger like Elastic search and Kibana and send logs data as objects, or at least just write it to a file (and open it in fundamental mode)
Well that's quite overkill 🙂. It's pretty handy to have logs on STDOUT (i.e. in the repl buffer) and it's not a tremendous amount of logs. Some docker-related best practices even recommend that approach
use a logger like log4j with slf4j and include a
log4j.xml on the classpath in dev that directs logs to a file.
in prod include a different log4j.xml in the classpath and send the logs to stdout or where-ever you want.
Use tools.deps aliases or lein profiles to do this.
This is what we’ve done for years and it works well.
Hmmm. that could work; but it's just quite handy to see logs in my emacs immediately as I evaluate things. Also for debugging/tracing: I can copy printed data easily...
I hoped there we some configuration tweaks I could do to make it faster, but seems there's not much...
how do you add
tools.deps to get rid of this error:
WARNING: clj-refactor and refactor-nrepl are out of sync. Their versions are 2.5.0-SNAPSHOT (package: 20190618.716) and n/a, respectively. You can mute this warning by changing cljr-suppress-middleware-warnings.
I’ve tried adding the dependency to
:extra-deps in my alias, which doesn’t seem to work
Yes, that's what `I use very often, but even one batch processing job can make Emacs slower for quite a while...
yeah. unfortunately emacs doesn't handle long lines well. you can turn off font-locking in the repl buffer if you like. At work i'm gonna soon pipe logging to a rotating file for this very reason
Do you have something like this in your config?
(with-eval-after-load 'clojure-mode (dolist (c (string-to-list ":_-?!#*")) (modify-syntax-entry c "w" clojure-mode-syntax-table) (modify-syntax-entry c "w" clojurescript-mode-syntax-table)))
I'd like to have cider(?) look for metadata on a var (similar to the :arglists metadata) , and show me some different eldocs... can someone point me toward the code I should look at for that off hand?