This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-11
Channels
- # announcements (1)
- # babashka (70)
- # beginners (8)
- # calva (5)
- # cider (9)
- # clojure (48)
- # clojure-austin (68)
- # clojure-europe (29)
- # clojure-norway (30)
- # clojure-uk (5)
- # clojuredesign-podcast (2)
- # cursive (19)
- # datomic (10)
- # emacs (11)
- # events (2)
- # exercism (4)
- # fulcro (2)
- # hyperfiddle (29)
- # introduce-yourself (2)
- # jobs-discuss (4)
- # kaocha (1)
- # leiningen (8)
- # lsp (8)
- # malli (2)
- # matcher-combinators (20)
- # nrepl (15)
- # off-topic (33)
- # reagent (7)
- # releases (4)
- # shadow-cljs (42)
- # spacemacs (6)
- # sql (6)
- # squint (10)
- # vim (3)
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.)
(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.)
Can your REPL not write the port number to a file somewhere? That’s basically the exact use case of the port files.
I can write the port, but it's the hostname/ip address that is dynamic.
Oh, I see. I guess one possibility would be to read a full URL from a file, instead of just a port?
It's a socket REPL
running in ECS, hence I don't always know what IP address I'm going to get
A full URL would work
Yeah, that makes sense. So you could write a file from whatever’s starting the server?
I could absolutely do that.
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.
Amazing!
Did anything ever come of this?
I guess it might relate to this issue: https://github.com/cursive-ide/cursive/issues/2559
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.
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.
ooh, thank you. I'll take a look soon...