Fork me on GitHub
#joker
<
2019-10-03
>
hairfire17:10:52

Can Joker be invoked with a filename, load the contents of the file, then run a repl?

👍 1
jcburley18:10:17

Thought I was the only person who wanted this! So...: https://github.com/candid82/joker/pull/274

hairfire18:10:54

This is great.

👍 1
hairfire18:10:38

Now I have another question. Can one start Joker so that it provides a socket repl on a specified port. This could allow an IDE use it.

jcburley19:10:39

Already there, e.g. --repl :4321.

hairfire19:10:21

Ah! That's perfect. Where did you find docs about ":4321"?

jcburley19:10:15

See --help usage output.

hairfire19:10:44

Is that what "[<socket>]" is supposed to mean?

jcburley19:10:26

Yes. Any socket spec should work, as passed to net.Listen() in Go.

hairfire19:10:26

Got it! I used "localhost:4321" and Joker says it is listening. I attempted to connect from IntelliJ IDEA running Cursive, but Joker crashes 😞

😲 1
jcburley19:10:36

Submit an Issue please!