Fork me on GitHub
#cider
<
2019-09-25
>
bozhidar06:09:57

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

jumar17:09:43

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

practicalli-johnny18:09:37

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

jumar18:09:32

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

rickmoynihan08:09:03

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.

jumar09:09:50

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

jumar09:09:28

I hoped there we some configuration tweaks I could do to make it faster, but seems there's not much...

rickmoynihan10:09:47

There is an emacs mode for tailing log files

rickmoynihan10:09:54

iirc it ships with emacs these days

rickmoynihan10:09:35

auto-revert-tail-mode

ccann18:09:29

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.

ccann18:09:07

I’ve tried adding the dependency to :extra-deps in my alias, which doesn’t seem to work

ccann19:09:19

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

dpsutton19:09:25

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

jumar19:09:43

Yes, that's what `I use very often, but even one batch processing job can make Emacs slower for quite a while...

dpsutton19:09:44

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

👍 4
dpsutton19:09:52

fireplace users don't know our pain 😞

👍 4
ag21:09:34

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

flefik13:09:21

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

ag16:09:50

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

flefik16:09:37

remove the #?

ag21:09:52

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

escherize22:09:19

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?

flefik13:09:21

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