Fork me on GitHub
#cursive
<
2024-01-11
>
Rachel Westmacott09:01:47

I like that the port number for a repl configuration can come from an external file - is there any way to set the hostname programatically? (I'm starting ad-hoc remote repls and the ip-address is not known in advance - it's a faff to keep updating it every time.)

Rachel Westmacott09:01:37

(I've considered updating the /etc/hosts file for this purpose, but the permissions on that file are making me think that's not the right way to go.)

cfleming18:01:12

Can your REPL not write the port number to a file somewhere? That’s basically the exact use case of the port files.

Rachel Westmacott20:01:38

I can write the port, but it's the hostname/ip address that is dynamic.

cfleming09:01:39

Oh, I see. I guess one possibility would be to read a full URL from a file, instead of just a port?

cfleming09:01:27

Is this for nREPL or for a socket REPL?

Rachel Westmacott09:01:45

It's a socket REPL

Rachel Westmacott09:01:07

running in ECS, hence I don't always know what IP address I'm going to get

Rachel Westmacott09:01:32

A full URL would work

cfleming09:01:43

Yeah, that makes sense. So you could write a file from whatever’s starting the server?

Rachel Westmacott09:01:56

I could absolutely do that.

cfleming09:01:36

Ok. I’ll check over in the tooling group to see if anyone is already doing anything like this, and I’ll add something for the next build.

Rachel Westmacott11:02:21

Did anything ever come of this?

cfleming19:02:56

So nothing came of it yet, sorry, I asked in the dev-tooling group here if anyone was doing anything similar and got no response. That issue looks perfect, I’ve moved that one into the latest release and will get to it soon.

gratitude 1
cfleming00:03:41

Sorry for the delay on this one, this fix is out in the latest EAP, let me know if it’s doing what you need it to.

Rachel Westmacott17:03:39

ooh, thank you. I'll take a look soon...

Rachel Westmacott10:03:12

Yes, that's just the ticket, thank you! gratitude

👍 1