cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Kevin Mungai 2020-09-03T17:04:16.069600Z

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.

dpsutton 2020-09-03T17:16:29.070200Z

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

dpsutton 2020-09-03T17:16:37.070500Z

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

Kevin Mungai 2020-09-03T17:34:14.070900Z

Thanks, works like a charm!

practicalli-john 2020-09-03T19:06:33.072800Z

@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

deadghost 2020-09-03T21:01:15.074800Z

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?

deadghost 2020-09-03T21:17:19.076400Z

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.

practicalli-john 2020-09-03T22:31:33.080400Z

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