I keep getting
; Sponsored by @trev-dev ❤
; --------------------------------------------------------------------------------
; localhost:52680 (ECONNREFUSED): .nrepl-port
; --------------------------------------------------------------------------------
; localhost:52680 (disconnected): .nrepl-port
After something odd happened in nvim and I force quit it.I did killall nvim successfully. But now I can't connect to the Conjure repl.
It's a small babashka project.
Maybe there's a rogue Conjure process I need to kill?
Doesn't matter if I change the port.
Is there by chance an .nrepl-port file still in your filetree?
Yes, that's where I changed the port
try and rm that file?
Now I started a babashka repl in a different way,
nrepl {:requires ([babashka.fs :as fs]
[babashka.nrepl.server :as srv])
:task (do (srv/start-server! {:host "localhost"
:port 1339})
(spit ".nrepl-port" "1339")
(-> (Runtime/getRuntime)
(.addShutdownHook
(Thread. (fn [] (fs/delete ".nrepl-port")))))
(deref (promise)))}}(from our bb.edn)
and it seems to connect fine to that
hm
I made do with that server. Thanks, @sludwig.dev 🙂
Guess I'll have to reboot at some point, and that'll fix my problem, I assume
👋 , yea the .nrepl-port file not getting cleared on an abnormal exit has bitten me many a timee
FYI @reefersleep, the .nrepl-port file is just where the current port is stored for other tools to pick up on
Cheers @ake
One of my team mates made that bb.edn. Maybe his setup requires knowing the port.