cider

2025-07-03T16:39:19.085949Z

Hello. I'm learning CIDER (v. 1.18), and I tried using cider-known-endpoints but couldn't get it to work. This is what I did: I started a local nREPL server listening on some port, e.g. 45678. Then I put this in my init.el file:

(setq cider-known-endpoints
      '(("localhost" "45678")))
After restarting Emacs, I ran cider-connect but it didn't automatically connect CIDER to my local server as I expected. Am I missing something?

oyakushev 2025-07-04T08:59:26.053849Z

It should be

(setq cider-known-endpoints
      '(("connection name" "localhost" "45678")))
The first tuple value is the label

2025-07-17T23:46:36.796589Z

Ah! My bad, I should have read the doc more carefully. It does mention "completing reads"

bozhidar 2025-07-17T05:09:09.904449Z

I think the label was supposed to be optional. Also - this config is not about connecting automatically to CIDER, but about having some saved endpoints to which one can quickly connect with completion.