Fork me on GitHub
#nrepl
<
2020-05-14
>
flowthing11:05:05

Does nREPL have a feature that would let me do something like this?

send-> {:op "eval" :code "(+ 1 2)" :my-thing/silent? true}
<-recv {:value "3" :my-thing/silent? true}
My use case is that I want to eval an entire namespace, but I don't want to flood the REPL output with the names of every var that gets defined. Instead, I'd like to just show something like "Loading my.awesome.ns…". I know I can do it by keeping track of the IDs of the ops I'm sending, but I'm just wondering whether there's something simpler I could do.

flowthing11:05:49

The documentation suggests that :id is the only datum that's the same in the request and the response, so I think I'll just use that.

shen08:05:43

hmm.. what client you are using?

shen08:05:42

as bozhidar said, nothing built in, and this is probably way easier to do on the client side than server

flowthing08:05:44

Yeah, I'm currently working on the client side exclusively.

shen08:05:36

oh cool. a new client!

shen08:05:50

what's the landscape on the submlime text side of things?

flowthing08:05:41

Well, it's got potential. With https://github.com/snoe/clojure-lsp and https://github.com/sublimelsp/LSP (and my plugin, after some more work), I think I could get most of what I'm looking for in a Clojure editing tool. I'm currently using that setup as a daily driver, and it is looking somewhat promising.

flowthing08:05:59

I might also need to reimplement https://github.com/odyssomay/paredit and https://github.com/odyssomay/sublime-lispindent to be more Clojure-friendly, but we'll see.

flowthing08:05:47

In sum, it's pretty incomplete at the moment. But I'm hoping I can build it into something feasible.

shen08:05:31

sounds like a fun project 🙂

flowthing08:05:03

That it is, and if nothing else, it has been an education. 🙂

bozhidar06:05:47

There’s a private channel for Clojure dev tooling authors. I’ll invite you there, so we can support you better.