cider 2026-06-30

Heads up - I'm almost done with the scope I had in mind for the next CIDER release: β€’ revamp of the debugging functionality outside of the debugger (macroexpansion, tracing, enlighten, tap, etc) β€’ improvements to the ClojureScript support (e.g. you can now run tests from CIDER) β€’ improvements to xref (I've made it work a lot better out-of-the-box, but reviving some ideas from the days of swank-clojure and creative use of ripgreg) πŸ˜„ β€’ Adoption of transient for the nest command maps (e.g. doc, eval, etc) The most interesting things are in the first section of the changelog https://github.com/clojure-emacs/cider/blob/master/CHANGELOG.md I guess I'll eventually have to record some new screencast after this release, as I've made quite a few small UI changes. At any rate - now would be a good time to test the progress so far, before the final release happens.

❀️ 5
1

will ripgrep be a required dependency?

No, the improved xref works with grep as well, it just works better with ripgrep

And obviously it's up to everyone to decide if they want to use this functionality at all. πŸ™‚ Something like clojure-lsp and clj-refactor will still give you more accurate results, but both of them do it with a lot more complexity.

πŸ‘ 1

The code for the new functionality is here https://github.com/clojure-emacs/cider/blob/master/lisp/cider-xref-source.el and it's quite simple (I think).

That all sounds really useful! Macroexpansion in CIDER for ClojureScript would be really useful to me. is that included?

Yeah, that's included. Before macroexpansion worked for cljs, but only for cljs.core macros. Now I've taken some steps to make it work with user-defined macros as well. That's another area that needs broader testing, though, as I'm not a heavy cljs user myself.

(meaning I test such features with trivial examples most of the time)

Excellent. Don’t worry, I’ll be giving it some testing!

πŸ‘ 1

on the topic of ripgrep: im not sure how much people are aware of ugrep / ug (https://ugrep.com/), which is CLI compatible with rg and grep, but has some nifty features, like fuzzy search, google-style AND / OR / NOT operators, optional TUI, etc. im using ug for awhile from the CLI and i haven't experienced any issues with it and it feels just as fast as rg or ag when i grep the cloned github repos of the various clojure and emacs dependencies we rely on. there is also the https://github.com/jimporter/urgrep emacs package, which is a > ... universal frontend for any grep-like tool, as an alternative to the built-in M-x rgrep (and other similar packages). and it supports ugrep too.

πŸ†’ 3

TIL!

πŸ™‡ 1
❀️ 1

@bozhidar ClojureScript macro expansion in CIDER 2.0: chef_kiss

1