Set default connection settings for nrepl #3650
-
Hi! Been using Cider for a while. This is something I have been putting up with and haven't been able to find a solution for. Every single time I open a .clj file, cider pops up asking to connect to a nrepl (cider-connect-*, cider-jack-in-*). If I don't have a nrepl active, it exits with an error. Often, the buffer stays the same and every single time I revert I have to enter the port details manually. I'm doing this for EVERY clojure buffer! It's very annoying! Is there a way to make it shut up or accept some default port settings? Config:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
That's not our traditional behavior at all - if it was we'd get a lot of complaints 😄 It sounds like something is invoking I'd suggest fixing that first, and then re-evaluating whether you need default connection settings - I wouldn't be too keen on facilitating workarounds. Cheers - V |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
#3359 intended to tackle that one
However you don't particularly need it - you can make your own helper that performs
cider-connect-clj
/cider-jack-in
with specific params.If you normally use
cider-connect-clj
, there's not a lot to type anyway thanks to open port detection (so normally it's RET for the localhost suggestion, RET for the detected port)