Fork me on GitHub
#cider
<
2021-10-05
>
vemv10:10:59

ℹ️ last weekend we released cider-nrepl / cider.el fixing an issue related to *out* that had been bugging users for the last couple months. Likewise, clj-refactor.el / refactor-nrepl have been updated, delivering a whole lot of bugfixes and performance/reliability improvements. Finally, clojurescript autocompletions (aka clj-suitable) also got a few bug fixes delivered. You can grab all of this by making sure cider.el + clj-refactor.el are @ latest, per the MELPA snapshots. cider

vemv10:10:53

I'm particularly excited for clj-refactor.el, we worked steadily on it this year and the results are finally showing. Old favorites like clj-slash and cljr-add-missing-libspec should perform much faster, especially for large projects. There are still bugfixes in the roadmap, keep an eye on things and feedback welcome 👀

FiVo10:10:11

I am using io.pedestal.log for logging and in one project the coloring of the different log levels works in another it doesnt. Is this something cider does? How can I figure out why it does not work in one project?

vemv10:10:42

I'd start by running both projects in a terminal, and observing the coloring they get. That might confirm/deny some things

FiVo11:10:15

I think it's my logback config

👍 1
bartuka15:10:57

uhmm.. since I updated cider I am receiving the warning about refactor:

WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.5.1 and n/a, respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.
My project is using leiningen and this was the cmd:
[nREPL] Starting server via /opt/homebrew/bin/lein update-in :dependencies conj \[nrepl/nrepl\ \"0.9.0-beta3\"\] -- update-in :plugins conj \[refactor-nrepl/refactor-nrepl\ \"3.0.0-alpha12\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.27.2\"\] -- with-profile dev,enrich repl :headless :host localhost

vemv15:10:37

clj-refactor.el should be at latest too

bartuka15:10:26

it is, the latest commit is 23743432c39be9b62630f3f6468ac36ebc12aaff

bartuka16:10:30

@U45T93RA6 weird thing.. I jack-in into a deps project and no warnings appeared, but in a brand new lein new my-app I see the warning and no refactor middleware is injected

vemv16:10:48

Sounds like I should bump https://github.com/clojure-emacs/clj-refactor.el/blob/23743432c39be9b62630f3f6468ac36ebc12aaff/clj-refactor.el#L10 then. Not super familiar with package.el intricacies myself. Either way, a mismatch is 100% harmless I can guarantee that. No breaking changes have been introduced, the 2->3 numbering change was pretty spontaneous.

vemv16:10:27

So You can mute this warning by changing cljr-suppress-middleware-warnings. is sound to follow

vemv20:10:43

For anyone else reading the thread (which we continued over DM), our conclusion was there was a glitch in the published .jars which has been fixed in both clj-refactor.el and refactor-nrepl.

🚀 2
Mikko Koski18:10:13

I got the same warning after upgrading Doom. Pinning clj-refactor to the latest commit on master seemed to fix it. 3.0.0-alpha13 seems to work fine. https://github.com/hlissner/doom-emacs/pull/5594

ericdallo16:10:17

is it possible to eval and copy the result to clipboard?

ericdallo16:10:57

sometimes I just want to eval, get the result and paste somewhere else

ericdallo16:10:15

some command for that would be really useful

bartuka16:10:27

cider-interactive-eval seems like other eval functions rely on this one.. and the dispatch is sent to a callback function.. seems like your request might be easy to implement using it

ericdallo16:10:09

yeah, if there is nothing built-in I'll probably hack with that, thanks!

bartuka16:10:19

Don't forget to share here your fn 🙂

vemv17:10:54

if it helps at all simpleclip has been my trusty tool for clipboard tasks for a number of years, no complaints :)

👍 1
jjttjj18:10:52

Hi I keep getting a *cider-result* popup buffer every time I cider-eval-defun-at-point. What's the setting to change this again? I tried cider-use-overlays but that's not it

vemv21:10:04

cider-interactive-eval-output-destination perhaps?