practicalli

https://practicalli.github.io/ http://yt.vu/+practicalli (youtube)
2021-05-29T09:40:06.007200Z

Hello 🙂 I am following the REPL driven development Tutorial (thank you for all this help 🙂) and can not get the testpath to be known by the repl. At this point in the Video: https://youtu.be/NDrpclY54E0?t=918 the sesman start cmd is edited with -M:test; however my sesman start cmd looks very different:

/usr/local/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "0.26.0"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl
Where am I supposed to put the -M:test? Or is there now another way?

practicalli-john 2021-05-30T21:43:25.008700Z

Thanks for confirming. I've added a note and comment to the video so future viewers are aware of the change.

2021-05-29T10:07:28.007300Z

After adding the value to .dir-locals.el the sesman command is as follows:

[nREPL] Starting server via /usr/local/bin/clojure -M:test -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "0.26.0"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl
And I am getting this error:
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-Sdeps (No such file or directory)

practicalli-john 2021-05-29T10:43:21.007500Z

Cider did change the way it does aliases recently. What does your dir-locals.el look like?

practicalli-john 2021-05-29T10:45:56.007700Z

This should be the latest approach https://practical.li/spacemacs/clojure-projects/project-configuration.html

2021-05-29T10:50:26.007900Z

dir-locals.el:

((clojure-mode . ((cider-clojure-cli-global-options . "-M:test"))))
the same that is shown during the tutorials (if I didnt got any typos 🙃 )

practicalli-john 2021-05-29T11:18:32.008100Z

You could try the new variable name as in this example

((clojure-mode . ((cider-preferred-build-tool . clojure-cli)
                  (cider-clojure-cli-aliases . ":env/dev:env/test"))))
Replacing the specific alias names

2021-05-29T11:28:03.008300Z

This works thanks 🙂👍