Fork me on GitHub
#emacs
<
2020-06-24
>
kimim11:06:44

dear all, whether cider-nrepl support ring? When I start ring server with this option:

:ring {:handler km.core/app
         :nrepl {:start? true}}
Then I cider-connect-clj to the nrepl, the code completion is not working.

dpsutton12:06:16

This is using lein ring-server?

kimim12:06:44

Yes. I'm using lein ring server-headless to start the server and nrepl

dpsutton12:06:53

Unfortunately that plugin injects nrepl version 0.3.2 I think. Currently version 0.7 is out. There’s an open issue to fix this

dpsutton12:06:54

(when @env/dev?
      (nrepl.server/start-server :bind "0.0.0.0" :port nrepl-port
                                 :handler cider-nrepl-handler)
      (println "[INIT] nrepl started on port" nrepl-port))

dpsutton12:06:32

with requires on [cider.nrepl :refer [cider-nrepl-handler]] and nrepl.server

kimim13:06:00

Thank you, I will try this solution.