Hi! Is the env var LEIN_REPL_PORT=7888 supposed to work? I do start my lein repl with it
yet nrepl starts at a completely random port:
Connecting to local nREPL server...
Clojure 1.12.0
nREPL server started on port 63630 on host 127.0.0.1 -
user=> (System/getenv "LEIN_REPL_PORT")
; "7888"
(Started via #cursive)
Any tips most appreciated!Works for me:
(!1998)-> LEIN_REPL_PORT=7888 lein repl
nREPL server started on port 7888 on host 127.0.0.1 -
How are you starting your REPL?Hmm, Cursive. How are you starting Cursive? Maybe it isn't picking up your environment vars?
(with VS Code, I start it from the terminal code . so it has the same env as any other work I do)
When I run (System/getenv "LEIN_REPL_PORT") inside the started repl, it shows the expected number so there is something else going on…
I’ll check if #cursive has anything to say…
It seems to be a cursive issue after all: https://clojurians.slack.com/archives/C0744GXCJ/p1763848612756289?thread_ts=1763848315.880209&cid=C0744GXCJ