Fork me on GitHub
#cider
<
2020-09-03
>
mungaikamau717:09:16

Hi, how can I specify the alias or aliases in a project using tools.deps when jacking in? One way I have found is using .dir-locals.el but I can only create one at a time. Thanks in advance for your answers.

dpsutton17:09:29

use a prefix arg when jacking in. for me jack in is C-c M-j so do C-u C-c M-j

dpsutton17:09:37

that will let you edit the string to your heart's content

mungaikamau717:09:14

Thanks, works like a charm!

jr0cket19:09:33

@mungaikamau7 a .dir-locals.el can include multiple aliases with cider-jack-in. https://practicalli.github.io/spacemacs/clojure-projects/project-configuration.html I use this file to include lots of different aliases I have in my Clojure deps.edn https://github.com/practicalli/clojure-deps-edn

deadghost21:09:15

Not entirely sure if this is a cider q or lein q, when I start my REPL, my src/ namespaces are loaded in but not my test/ namespaces. This can be confirmed with (ns-publics 'project.foo-test) => No namespace: project.foo-test found. What do I need to configure to get this going?

deadghost21:09:19

After running M-x cider-test-run-project-tests I can then run M-x cider-test-run-ns-tests on project.foo and have project.foo-test tests run.

jr0cket22:09:33

@deadghost Its a CIDER question (it works the same with Leiningen and Clojure CLI tools). Using the project command will load all test namespaces, using the ns command only loads the current. To be sure, evaluate the buffer containing the tests before running the tests. I am sure someone can explain it better. I just assume I need to evaluate the tests before running them.