This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-11
Channels
- # aleph (7)
- # announcements (5)
- # beginners (58)
- # calva (20)
- # cider (10)
- # clj-kondo (4)
- # cljfx (5)
- # cljsrn (7)
- # clojure (29)
- # clojure-europe (11)
- # clojure-mexico (1)
- # clojure-norway (26)
- # clojure-uk (9)
- # clojurescript (1)
- # cursive (31)
- # datahike (22)
- # datomic (12)
- # duct (3)
- # fulcro (28)
- # helix (35)
- # hyperfiddle (28)
- # lsp (4)
- # malli (8)
- # midje (3)
- # music (2)
- # nbb (9)
- # nrepl (20)
- # off-topic (36)
- # polylith (3)
- # shadow-cljs (47)
- # sql (2)
- # testing (7)
- # vim (17)
- # xtdb (7)
Hey.
The docs of cider-nrepl say that test
is deprecated: https://github.com/clojure-emacs/cider-nrepl/blob/389cc1bf126134f941030a1c8343c1384f19eeb5/src/cider/nrepl.clj#L452.
What is it replaced with? Could docs say which function should be used instead?
Also I'm digging into CIDER source code and it's hard to understand what are the inputs and what are the actual API calls that are intended.
Any examples?
Also CIDER seems to use the deprecated test
function: https://github.com/clojure-emacs/cider/blob/dd4c555fd88834581306ac54f1aaefe2b0efec99/cider-test.el#L663
I want to test the current namespace from REPL and get results (I expect to add it as Leiningen dependency and simply execute the test
somehow).
I tried this but it didn't work:
((cider.nrepl/wrap-test :hi)
{:op "test-all"
:session :hi
:namespace *ns*})
I'd suggest the easiest way to get the exact message is to start a sample project, turn on nrepl logging, and see what message it sends for test all
Nice. I didn't know it was a thing.
But now there is a problem because CIDER uses "test"
which is marked in code as deprecated:
(-->
id "88"
op "test"
session "dca8aa06-8163-49af-be06-0d0e0b9ad605"
time-stamp "2022-08-11 15:47:00.045844547"
load? "true"
ns #("_-test" 0 42 (fontified t help-echo cider--help-echo cider-locals nil cider-block-dynamic-font-lock t face font-lock-type-face))
tests ("_-test")
)
And I somehow need to understand how to make a session.I managed to see the log and describe the session of my other nREPL connection but it gives me this short list of operations: add-middleware,load-file,swap-middleware,ls-middleware,close,sideloader-provide,stdin,sideloader-start,lookup,clone,ls-sessions,completions,eval,describe,interrupt And in CIDER it gives me very many more. It also gives the version of the nREPL plugin. Any ideas what could it be? Maybe it's somehow the type of the connection? They reply with this list for me: https://github.com/clojure-emacs/cider-nrepl/blob/a8fd4f929844c42f3c4700dcc95a719c2d645e72/maint/cider/nrepl/impl/docs.clj#L44
https://docs.cider.mx/cider-nrepl/usage.html#via-embedding-nrepl-in-your-application
I'm trying to run Conjure and I want to find out how it connects to REPL. And it doesn't have some functionality so I think how to make it work. I haven't touched any docs. I'll try them.
Thanks for the doc.
I managed to run add-middleware
from here: https://github.com/clojure-emacs/cider/blob/dd4c555fd88834581306ac54f1aaefe2b0efec99/cider-eval.el#L347
So I have to add them by hand upon start :thinking_face:
This one is what I wanted to add: https://github.com/clojure-emacs/cider/blob/dd4c555fd88834581306ac54f1aaefe2b0efec99/cider-eval.el#L332