Fork me on GitHub

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


There is an emacs mode for tailing log files


iirc it ships with emacs these days




how do you add refactor-nrepl using 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


I can’t find anything about this in the docs for tools.deps


@jumar some healthy use of C-u C-c C-o to clear the repl buffer should tidy it up


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

👍 1

fireplace users don't know our pain 😞

👍 1

fyi: M-x clojure-align messing up lambdas by separating # from (. Can someone fix it?


i had this same issue. Do you know how you fixed it?


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


remove the #?


nevermind, I think it’s due to my local change in my config


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?