luminus

manandearth 2018-09-11T09:16:16.000100Z

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...

2018-09-11T09:41:40.000100Z

i dont think u need to do anything special

2018-09-11T09:43:00.000100Z

do u have any dependency to cider in the classpath ?

manandearth 2018-09-11T10:04:15.000100Z

@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!

2018-09-11T10:23:25.000100Z

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

manandearth 2018-09-11T10:28:21.000100Z

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

manandearth 2018-09-11T10:33:22.000100Z

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.

2018-09-11T11:20:58.000100Z

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

manandearth 2018-09-11T13:12:58.000100Z

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

1👍
2018-09-11T13:29:25.000100Z

thanks for sharing!