babashka / obb

Ad-hoc ClojureScript scripting of Mac applications via Apple's Open Scripting Architecture.
Eclipse Public License 1.0
241 stars 5 forks source link

Support starting an nREPL server #22

Open zane opened 2 years ago

zane commented 2 years ago

obb should support starting an nREPL server, presumably via obb nrepl-server for parity with bb, nbb.

borkdude commented 2 years ago

@zane I think we should implement this as the next big feature for obb.

It should be relatively straightforward to borrow code from nbb. I basically copied over the implementation to joyride as well.

borkdude commented 1 year ago

I think joyride is now the closest equivalent (since the code in both joyride and obb is evaluated synchronously) but I'm blocked on how to start a socket server in a JXA environment.

If someone can point me to how to do a similar thing like this in JXA:

https://github.com/BetterThanTomorrow/joyride/blob/7845ea3262dd20f16c12d7eb207fb05d07c3486b/src/joyride/nrepl.cljs#L253-L260

then I'm willing to invest a couple of hours getting an nREPL thing working for obb.

borkdude commented 1 year ago

Perhaps some useful information in here: https://rderik.com/blog/building-a-server-client-aplication-using-apple-s-network-framework/