This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-11
Channels
- # announcements (4)
- # aws (6)
- # babashka (40)
- # beginners (318)
- # biff (4)
- # bootstrapped-cljs (9)
- # calva (19)
- # chlorine-clover (1)
- # cider (3)
- # clj-on-windows (25)
- # cljdoc (8)
- # cljfx (1)
- # cljs-dev (30)
- # cljss (2)
- # clojure (62)
- # clojure-chile (9)
- # clojure-europe (11)
- # clojure-finland (17)
- # clojure-italy (1)
- # clojure-kc (1)
- # clojure-nl (3)
- # clojure-spec (27)
- # clojure-uk (40)
- # clojuremn (1)
- # clojurescript (51)
- # conjure (6)
- # cursive (8)
- # data-science (9)
- # datahike (4)
- # datascript (1)
- # datomic (31)
- # emacs (10)
- # emotion-cljs (1)
- # events (1)
- # figwheel-main (16)
- # find-my-lib (1)
- # fulcro (30)
- # graalvm (3)
- # graphql (12)
- # helix (16)
- # honeysql (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (3)
- # kaocha (26)
- # lambdaisland (3)
- # leiningen (15)
- # malli (7)
- # off-topic (100)
- # pathom (8)
- # pedestal (15)
- # protojure (24)
- # re-frame (2)
- # reagent (7)
- # reitit (22)
- # remote-jobs (1)
- # shadow-cljs (140)
- # spacemacs (17)
- # spire (2)
- # tools-deps (23)
- # uix (11)
- # vim (5)
- # xtdb (3)
- # yada (3)
According to stackoverflow something like this should store the output of clojure
into the variable $x
:
$x=(clojure -Spath -Sdeps '{:deps {org.clojure/data.zip {:mvn/version \"1.0.0\"}}}') | Out-String
(PowerShell). Why doesn't it work?yes. deps.clj does it correctly. https://github.com/borkdude/deps.clj
I notice the powershell impl does Write-Host $CP
, not sure if that should be Write-Out
?
from some googling, I think so
this kind of thing works in the *nix clojure
I fixed that and another case in -Sdescribe
Write-Host is now only used for purely out of band informational messages
no, there is Write-Error too
Write-Host truly only writes to the host and does write to out or err
terminal is seeing all of them, but matters when pipelining
I've got some pending minor fixes in tda, let me release that and then I'll push a new dev release of clj stuff
@borkdude fixed in 1.10.1.547
TIL that this "just works" on Windows:
user=> (require '[ :as io])
nil
user=> (io/file "src" "babashka/main.clj")
#object[java.io.File 0x722c07fa "src\\babashka\\main.clj"]
Yeah, but given that all the file APIs return \
in them, your code still needs to deal with both 😞
in my case I was scanning directories and .jar files for existing entries, so I can get away with only using one suffix string