leiningen 2025-11-22

Jakub Holý (HolyJak) 2025-11-22T21:38:33.671389Z

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)

Jakub Holý (HolyJak) 2025-11-22T21:50:19.273089Z

When I run (System/getenv "LEIN_REPL_PORT") inside the started repl, it shows the expected number so there is something else going on…

Jakub Holý (HolyJak) 2025-11-22T21:51:07.493659Z

I’ll check if #cursive has anything to say…