Fork me on GitHub
#cider
<
2022-02-01
>
magnars07:02:57

Is there some way to start the REPL in a specific namespace with deps.edn? I'm asking here because I haven't been able to find anything for deps, so maybe CIDER can help here?

practicalli-johnny08:02:48

The REPL always starts in the user namespace. Leiningen would switch to a specified namespaces once the REPL was running. For a Clojure CLI (deps.edn) project, I would add a user namespace to the project and use an alias that added that namespace to the classpath. I assume it is then a mater of using (in-ns 'desired.namespace) in the user namespace Some examples here https://practical.li/clojure/clojure-cli/projects/configure-repl-startup.html

👍 1
bozhidar06:02:18

@U07FCNURX I looked at this in the past and there was no alternative of :initial-ns for tools.deps.

👍 1
FiVo13:02:27

Is there an equivalent of cider-pprint-eval-defun-at-point for cider-eval-last-sexp ? So I want the result of cider-eval-last-sexp but pprinted to a buffer?

magnars14:02:40

cider-pprint-eval-last-sexp