This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-09
Channels
- # adventofcode (197)
- # announcements (25)
- # aws (1)
- # babashka (21)
- # beginners (138)
- # calva (21)
- # cider (5)
- # clara (1)
- # clj-kondo (35)
- # clojure (97)
- # clojure-australia (4)
- # clojure-dev (37)
- # clojure-europe (100)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (36)
- # clojurescript (11)
- # conjure (15)
- # cursive (20)
- # datomic (12)
- # emacs (10)
- # events (2)
- # fulcro (83)
- # graalvm (14)
- # jobs (1)
- # jobs-discuss (27)
- # kaocha (75)
- # lambdaisland (21)
- # off-topic (27)
- # pedestal (5)
- # reitit (2)
- # reveal (20)
- # rewrite-clj (24)
- # sql (9)
- # tools-deps (37)
- # xtdb (93)
Can you describe the problem? This would be good feedback for something that's still under dev
I tried shelling out for deps on windows, and it was just a nightmare figuring out the quoting/escaping, etc
It was actually that progress-bar thing that I wanted to add in a script, so I tried to shell out to clojure deps and add that to the classpath
lol ok. yeah, babashka.deps will also solve that problem by allowing you to insert the deps map in the script itself without shelling out
but you can do this also from babashka as of now by using babashka.classpath/add-classpath
from within a script and babashka.process
to shell out
(-> (babashka.process/process ["clojure" "-Spath" ...] {:out :string}) :out)
will give you the classpath
correction:
(-> (babashka.process/process ["clojure" "-Spath"] {:out :string}) deref :out)
This should work on Windows given that babashka.process does some stuff to account for issues on Windows
I tried that, but I guess I have other issues, because I just get this error:
java.io.IOException: Cannot run program "clojure": CreateProcess error=2
that's because clojure
is a powershell thing in Windows.
The solution/workaround for that is to use https://github.com/borkdude/deps.clj which you can also install via scoop clojure.