leiningen

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!

seancorfield 2025-11-22T21:40:11.890379Z

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?

seancorfield 2025-11-22T21:41:17.696379Z

Hmm, Cursive. How are you starting Cursive? Maybe it isn't picking up your environment vars?

seancorfield 2025-11-22T21:41:47.872949Z

(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…

Jakub Holý (HolyJak) 2025-11-24T07:42:19.697019Z

It seems to be a cursive issue after all: https://clojurians.slack.com/archives/C0744GXCJ/p1763848612756289?thread_ts=1763848315.880209&cid=C0744GXCJ

👍🏻 1