This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-30
Channels
- # admin-announcements (1)
- # adventofcode (2)
- # announcements (2)
- # babashka (60)
- # beginners (48)
- # cherry (1)
- # cider (16)
- # clj-kondo (4)
- # clojure (53)
- # clojure-belgium (3)
- # clojure-europe (20)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-poland (4)
- # clojure-uk (6)
- # clojuredesign-podcast (19)
- # clojurescript (39)
- # community-development (12)
- # cursive (4)
- # datalevin (7)
- # datomic (23)
- # honeysql (14)
- # hyperfiddle (3)
- # instaparse (3)
- # lsp (3)
- # malli (10)
- # off-topic (34)
- # overtone (8)
- # polylith (2)
- # re-frame (9)
- # reitit (3)
- # releases (1)
- # squint (16)
- # timbre (7)
- # wasm (2)
- # xtdb (8)
I’m trying out the cider-log functionality (using logback in my project)… should I be seeing things in *cider-log*
buffer after adding appender? I’m not seeing anything there, but if I add a consumer, the logs are written to the REPL buffer as input (running CIDER 1.13.0-snapshot)
logback is supported, yes https://github.com/clojure-emacs/logjam/blob/master/src/logjam/framework/logback.clj (not all frameworks are) Please create an issue with your attempt and we'll follow up!
I’m trying to understand what the appender should be doing… any things I should check on my end to include in a ticket?
if I enable nrepl message logging, I’m not seeing anything log related coming thru from clj->emacs
tried by running (clojure.tools.logging/info "hello")
and I see that eval request and responses, but nothing else
> if I enable nrepl message logging, I’m not seeing anything log related coming thru from clj->emacs Yeah it should... please create the issue even if not incredibly detailed - most of all I'm interested in your environment + how did you attempt to use it (i.e. possible documentation issue)
@U11SJ6Q0K After an appender is attached it captures the log events. To see them either "Search log events" (with es
in the transient menu) or run M-x cider-log-event-search
which will show the events in the *cider-log*
buffer. This will add a log consumer to *cider-log*
and further events will appear there. You can add a log consumer to other buffers, but that's for special cases. You typically don't add a consumer to your REPL buffer or source code buffers.
There's also https://docs.cider.mx/cider/debugging/logging.html#usage (not sure if you have seen it)
thank you, that was also in the issue… I should have read it more carefully, it isn’t obvious from the cider-log UI itself that you need to run search for it to start showing things
Is there something that turns a let into a defn with all the left let bindings as params and all the right left bindings as arguments to a call to the function (possible inside a comment block?) i find myself doing this all the time once i'm ready to promote my scratch code to a function. If not, ill look into making it. I just feel like it might exist in lsp or cljr and i'm just missing it. Or i'm not seeing how it would be impossible or irrational.
https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-extract-function is pretty close, perhaps you can extend its logic
That's what i was thinking too, thanks.
clojure-lsp has extract-function code action as well: https://clojure-lsp.io/features/#clojure-lsp-extra-commands