This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-29
Channels
- # announcements (3)
- # aws (12)
- # babashka (11)
- # beginners (46)
- # calva (10)
- # cider (6)
- # clara (3)
- # cljdoc (6)
- # cljs-dev (13)
- # cljsrn (2)
- # clojure (49)
- # clojure-europe (2)
- # clojure-gamedev (1)
- # clojure-germany (22)
- # clojure-uk (2)
- # clojurescript (28)
- # clojureverse-ops (8)
- # conjure (6)
- # cursive (2)
- # emacs (1)
- # figwheel-main (9)
- # heroku (12)
- # jobs-discuss (1)
- # malli (10)
- # off-topic (1)
- # practicalli (8)
- # re-frame (25)
- # reagent (6)
- # shadow-cljs (24)
- # testing (10)
- # vscode (4)
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?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)
Cider did change the way it does aliases recently. What does your dir-locals.el look like?
This should be the latest approach https://practical.li/spacemacs/clojure-projects/project-configuration.html
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 🙃 )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 namesThanks for confirming. I've added a note and comment to the video so future viewers are aware of the change.