Fork me on GitHub
#luminus
<
2018-09-11
>
manandearth09:09:16

Hi there, new to luminus, just started on the "web development with clojure 2nd edition" I am sorry that I ask what I expect is repeatedly asked here... How do I set this up with Cider? You don't happen to have a prepared link for the discussion I suppose...

jmayaalv09:09:40

i dont think u need to do anything special

jmayaalv09:09:00

do u have any dependency to cider in the classpath ?

manandearth10:09:15

@jmayaalv I tried [cider/cider-nrepl "0.18.0"] both as plugin and as dependency in the project.clj but I get the following warning when I cider-connect: > WARNING: CIDER requires cider-nrepl to be fully functional. Many things will not work without it!

jmayaalv10:09:25

cider now injects all the neededd deps so u should actually remove it

manandearth10:09:21

@jmayaalv with or without the dependency, luminus starts its own nrepl, This conflicts with Cider I expect resulting in missing functionality..

manandearth10:09:22

the cider manual states that dependencies aren't injected for cider-connect and should be added to the profiles.clj , I tried that and besides not working for luminus, It conflicted with other templates I was using, so I am trying it in the project.clj instead. Also seem to not work. I will try to add a profile.clj in the project directory next and see.

jmayaalv11:09:58

oh ok i misread you. you r starting the repl outside of cider. i normally dont do that. i do a a cider-jackin

manandearth13:09:58

I found the solution thanks to @bozhidar if anyone was following it. he refered me to embedding repl in your app using a handler as documented in: https://cider.readthedocs.io/en/latest/installation/#ciders-nrepl-middleware

👍 4
jmayaalv13:09:25

thanks for sharing!