Fork me on GitHub
#cider
<
2022-11-15
>
mister_m00:11:51

Actual cider specific question: I have a deps.edn file that previously had zero dependencies. I've just added a :dev alias with a single item extra-paths vector to ["src/dev"]. I've also added an :extra-deps key with a library. When I try to evaluate a namespace form that uses this dependency I understandably find that this thing isn't found on the classpath. I know dependencies are injected on cider-jack-in - but I've already previously done that. What is the shortest path to getting this new dependency on my classpath so I can use it in this src/dev/blah.clj file?

mister_m03:11:00

I was able to do this with C-u C-u M-x cider-jack-in then adding :dev to the existing server commadn

mister_m03:11:27

probably could also add this to an elisp auto load file for the whole project

johnny.martin17:11:22

Cider is great because it does a lot of automatic stuff for us, and sometimes i forget where and what Cider does. I believe the extra paths will only stick if you cider-jack-in using argument -A:dev

johnny.martin17:11:35

Another way to confirm is instead to manually start clojure from the command line, clj -A:dev then do a cider-connect. Once your up and running in a Cider session you can try to diagnose your classpath by doing M-x cider-classpath Hope this helps...