@abcdw
Here I start the server without specifying #:port:
mbc@ins3910:~$ guix shell guile-next guile-ares-rs -- \
guile -c '((@ (ares server) run-nrepl-server))'
nREPL server started on port 7888 on host localhost - nrepl://localhost:7888
again:
mbc@ins3910:~$ guix shell guile-next guile-ares-rs
mbc@ins3910:~ [env]$ guile -c '((@ (ares server) run-nrepl-server))'
nREPL server started on port 62181 on host localhost - nrepl://localhost:62181
again:
mbc@ins3910:~$ guix shell guile-next guile-ares-rs
mbc@ins3910:~ [env]$ guile -c '((@ (ares server) run-nrepl-server))'
nREPL server started on port 51474 on host localhost - nrepl://localhost:51474
again:
mbc@ins3910:~$ guix shell guile-next guile-ares-rs -- guile -c '((@ (ares server) run-nrepl-server))'
nREPL server started on port 7888 on host localhost - nrepl://localhost:7888
As a one liner or with the bash continuation I always get port 7888
Split into two commands I always get a random port. Is this expected?
I thought bash \ was simply continue command on next line but here it seems to affect behavior.
I do get a ~/.nrepl-port file containing the port ID but when I start emacs it seems to ignore it and always looks to port 7888, which is why I thought I need to specify with #:port
@mbcladwell I can't reproduce this behavior it seems the environment is somewhat messed up.
7888 default port is provided by an old ares version.
Check `which guile` you are running, what is in your GUILE_LOAD_PATH, what version of guile `guile --version`.
https://youtu.be/kPnn22aC5eQ?t=19
It must always be a random port.
If your arei don't pick up a port from .nrepl-port it's maybe because you arei version doesn't support it (guix has old arei), you can C-u C-c C-s C-s to connect with custom port.
@mbcladwell I can't reproduce this behavior it seems the environment is somewhat messed up.
7888 default port is provided by an old ares version.
Check `which guile` you are running, what is in your GUILE_LOAD_PATH, what version of guile `guile --version`.
https://youtu.be/kPnn22aC5eQ?t=19
It must always be a random port.