This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-13
Channels
- # announcements (1)
- # babashka (30)
- # beginners (43)
- # biff (24)
- # calva (72)
- # cider (12)
- # clj-commons (24)
- # clj-on-windows (10)
- # cljsrn (23)
- # clojure (123)
- # clojure-bay-area (6)
- # clojure-europe (43)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-uk (9)
- # clojurescript (125)
- # core-async (9)
- # cursive (2)
- # data-science (3)
- # datomic (30)
- # devops (1)
- # emacs (13)
- # events (5)
- # fulcro (15)
- # graalvm (3)
- # gratitude (1)
- # humbleui (11)
- # lsp (5)
- # nbb (24)
- # off-topic (11)
- # pedestal (5)
- # releases (1)
- # remote-jobs (1)
- # sci (15)
- # scittle (16)
- # shadow-cljs (15)
- # sql (11)
- # tools-deps (9)
- # xtdb (5)
What's going on with babashka.process/process
and windows?
In Github Action on windows-latest
, the clojure
command is suddenly not available anymore when invoked with bb.process/process
.
(note: I need to spawn clojure
in a new JVM process)
I’m trying to type an answer on my phone but this is horrible. I’ll be at the kbd in 15 minutes ;)
This is unlikely a problem with bb, but more a problem with shelling out to Clojure on Windows due to the launcher being built in Powershell (see long discussions on this in #clj-on-windows .Are you using setup-clojure or so?
Yes, setup-clojure indeed
You can also use:
(clojure "-X:foo")
in bb.edn
which comes from babashka.tasks
or:
@(babashka.deps/clojure ["-X:foo"] {:inherit true})
from babashka.deps
Naively I would have thought that bb.process/process
would shell out to pwsh as well and things would just work
Ah, let me try cmd-exe...
again then, maybe I didn't do it right
No unfortunately it doesn't change anything 😞
That does work actually.
But indeed, I switched to process
to make the whole thing JVM-friendly
Well, perhaps on Windows (you can check with fs/windows?
) you can shell out to powershell explicitly, but in #CFN4QDHPS we're discussing options to move away from powershell
Indeed
Eventually I found using process
was overall more flexible for my needs so I didn't pursue the idea.
Yeah I don't have a windows machine so my opinion is very limited but so far I've met only pain trying to run all that on windows-latest
😅
Moving away from pwsh sounds like a good idea.
I think (?) setup-clojure deps.exe might be in a bit of https://github.com/DeLaGuardo/setup-clojure/issues/65 at the moment
Hi there, I have built an uberscript
with babashka and I am trying to run it on a machine without git
I get Error building classpath. Cannot run program "git": error=2, No such file or directory
How can I skip building the classpath given everything is already bundled in there?
Building an uberjar seems to be the way to go
@U0C8489U6 Why would the uberscript download anything? Because there is also an bb.edn
in the directory?
oh sounds great, that is what I was expecting, I'll try and run from a dir with no bb.edn
this indeed ran without using git
(and maybe even java
outside the folder where bb.edn
was