Possible to connect to Joker or Babashka socket repls?

117 views
Skip to first unread message

Tobias

unread,
Feb 9, 2020, 6:39:45 AM2/9/20
to Cursive
Has anyone been able to successfully connect Cursive to Babashka or Joker socket repls? I can't seem to get it to work. Details here, repeated for convenience below. 

I start the Babashka repl with

bb --socket-repl 1666

In cursive I set up the repl configuration like this:

Screenshot 2020-02-09 19.37.30.png


When I run that repl configuration in Cursive it gets stuck at “Connecting to remote Socket REPL…” forever. Any ideas what’s going wrong and how I fix it? I’m using Cursive v1.9.0-2018.3


It seems like the Babashka repl is working because I can connect to it from the terminal with


rlwrap nc 127.0.0.1 1666

Same story with the Joker repl. 

Colin Fleming

unread,
Feb 9, 2020, 5:05:45 PM2/9/20
to Cursive Group
Hi Tobias,

I don't think this is possible right now out of the box. The issue is that Cursive's socket REPL support is prepl-like, i.e. it actually uses structured messages, it's not pure streaming. See here for more details on what that means. I'm planning to add a pure-streaming socket REPL option, in the meantime the best workaround is to use Mike Fikes' Tubular, which is linked in that doc.

Cheers,
Colin
--
You received this message because you are subscribed to the Google Groups "Cursive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cursive+u...@googlegroups.com.



Attachments:
  • Screenshot 2020-02-09 19.37.30.png

Tobias

unread,
Feb 10, 2020, 6:56:55 AM2/10/20
to Cursive
Thanks Colin, Tubular did the trick. 


On Monday, February 10, 2020 at 6:05:45 AM UTC+8, Colin Fleming wrote:
Hi Tobias,

I don't think this is possible right now out of the box. The issue is that Cursive's socket REPL support is prepl-like, i.e. it actually uses structured messages, it's not pure streaming. See here for more details on what that means. I'm planning to add a pure-streaming socket REPL option, in the meantime the best workaround is to use Mike Fikes' Tubular, which is linked in that doc.

Cheers,
Colin


On Sun, Feb 9, 2020, at 11:39 AM, Tobias wrote:
Has anyone been able to successfully connect Cursive to Babashka or Joker socket repls? I can't seem to get it to work. Details here, repeated for convenience below. 

I start the Babashka repl with

bb --socket-repl 1666

In cursive I set up the repl configuration like this:

Screenshot 2020-02-09 19.37.30.png


When I run that repl configuration in Cursive it gets stuck at “Connecting to remote Socket REPL…” forever. Any ideas what’s going wrong and how I fix it? I’m using Cursive v1.9.0-2018.3


It seems like the Babashka repl is working because I can connect to it from the terminal with


rlwrap nc 127.0.0.1 1666

Same story with the Joker repl. 


--
You received this message because you are subscribed to the Google Groups "Cursive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cur...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages