cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
deadghost 2020-09-04T02:47:53.081500Z

Yes cider-test-run-ns-tests works after running cider-load-buffer on project.foo-test. I would like all my test namespaces loaded in on REPL startup.

bozhidar 2020-09-04T07:38:57.082900Z

There's no such functionality built-in, but you can have some hook that loads all you namespaces when you connect to the REPL server. Just keep in mind that this might trigger some side-effects, which is the main reason CIDER will never auto-loading anything.

practicalli-john 2020-09-04T08:35:12.086300Z

@deadghost To require specific namespaces on REPL startup, add a user.clj file to a project (somewhere on the classpath) and add the require expressions for each namespace. https://practicalli.github.io/clojure/clojure-tools/configure-repl-startup.html#requiring-namespaces The require expressions can be part of the user ns expression or as their own require expression.

schmidt73 2020-09-04T18:30:05.089Z

is there any built in macro for this patter:

schmidt73 2020-09-04T18:30:47.089100Z

schmidt73 2020-09-04T18:31:24.089700Z

I know you could use if-let but then you have to give the thing a name...

dpsutton 2020-09-04T18:42:50.090100Z

(or e body)

dpsutton 2020-09-04T18:43:20.090600Z

but these questions should probably go in #clojure or #beginners depending on the question. nothing about CIDER in that question