Fork me on GitHub
#cider
<
2016-12-08
>
neupsh16:12:13

hi, i am running gorilla-repl inside a boot-clj pod (without a project) i can pass in cider-nrepl dependencies in the pod, is there a way to make nrepl started by gorilla-repl to find the cider nrepl middleware and use it inside the pod?

neupsh16:12:49

basically, gorilla-repl starts an nrepl inside the pod in a boot task and i want it to start with cider nrepl middle ware

richiardiandrea17:12:45

@nux I think you also need to tell nrepl which middleware to use...

neupsh17:12:40

@richiardiandrea nrepl is started by gorilla-repl

neupsh17:12:17

it looks like it resolves cider-middleware

neupsh17:12:26

that means it should get loaded no?

neupsh17:12:32

@richiardiandrea when i connect from emacs with cider-connect, it says nrepl version is nil

neupsh17:12:07

i think somehow, the middlewares are not loaded.. i would really love to pass in custom middlewares in gorilla,

richiardiandrea17:12:46

@nux I don't remember by heart how to do it, let me check

neupsh17:12:35

@richiardiandrea i have read (have been reading) a lots of documents/source for nrepl, gorilla and cider, but still not able to figure it out.. gorilla does try to load cider middleware if it exists but somehow it is not happening.. to insert other custom middlewares, i think it will need modification of the gorilla code to support it

richiardiandrea17:12:52

oh ok sorry I thought it was a different kind of problem, I would then make sure that you see the deps in env inside the pod...maybe they are not added there?

neupsh17:12:59

@richiardiandrea i see them loaded, i can evaluate something like this:

neupsh18:12:01

cider.nrepl/cider-middleware

richiardiandrea20:12:54

Uhm, that's weird then, maybe look in gorilla's innards, the pod is just a custom class loader so it should definitely be same as inserting stuff in a normal nrepl