Fork me on GitHub
#cider
<
2022-01-06
>
coetry12:01:01

👋 I have a shadow repl connnected to my build in the browser in the bottom buffer, however in the top buffer where my source is, the minibar is reporting that nothing is connected. As a result, I'm not able to eval any forms from that buffer. Any ideas?

Sophie15:01:14

Have you opened your app in the browser?

coetry20:01:36

yeah, and the bottom repl evaluates expressions fine (i can do (js/alert "yo") and it works without issue)

coetry20:01:03

I can even load up the namespace in the repl, but i can't eval forms from the top buffer

richiardiandrea18:01:59

Hi there, I am testing cider-upgrade-nrepl-connection but I just see Starting nREPL's sideloader in the message buffer...what is a nice smoke test to try?

richiardiandrea18:01:40

(require 'cider.nrepl.middleware) works and I did not include it in my deps.edn nice!

richiardiandrea18:01:17

Does the sideloader also loads refactor-nrepl?

vemv18:01:40

I don't know much about the sideloader (or should I say ciderloader? cider) I believe @U07FP7QJ0 is the man

richiardiandrea18:01:51

it seems to all work very well

richiardiandrea18:01:10

(apart from the warning, that I am leaving on just to understand that I need to upgrade :D)

bozhidar11:01:43

It doesn't currently load refactor-nrepl, but this can be added in clj-refactor.el.

bozhidar11:01:40

I've yet to document this properly on http://docs.cider.mx, but there's plenty of info about the sideloader on http://nrepl.org.

bozhidar11:01:12

And we also have the blog posts by Arne

❤️ 1
plexus19:01:31

which I still need to update based on some input from Bozhidar 🙈 thanks for the reminder

👍 1
plexus19:01:22

Note that (as I write) I'm not convinced the sideloader is that interesting/useful, but dynamically adding middleware is a game changer.

richiardiandrea16:01:36

FWIW we have also another use case, we would like to load portal when we side load cider-nrepl...it is very nice to have both in dev mode 😄

plexus14:01:29

Right, but same thing applies. Multiple ways to get that onto the classpath, of which the sideloader is IMO the most inferior.

richiardiandrea17:01:44

Yeah I remember you mentioned that in the blog post, thanks for working on this stuff by the way!