clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
borkdude 2019-05-13T11:38:18.022800Z

I briefly tried tools.deps in a Windows VM to be able to build clj-kondo for Windows. Is there a trick to get clojure to work as a regular shell program instead of only in a PS environment so I can keep using my regular bash script for building? The script works in the bash shell that comes with the Git for Windows, except for that bit.

borkdude 2019-05-13T11:42:02.023300Z

I see there’s a clojure.bat script in the issue, maybe I could tweak that

timgilbert 2019-05-13T15:54:14.025Z

My recollection is that you can basically get it working if you exec out to powershell.exe clojure -A:foo versus clojure -A:foo, but clojure.bat would probably be a better choice if it works

borkdude 2019-05-13T17:53:36.025600Z

one problem I had with powershell.exe clojure -A:foo was that the environment variables weren’t picked up by powershell

borkdude 2019-05-13T17:54:09.026200Z

for GraalVM Windows I need to execute this within a special Windows 7.1 SDK shell

carkh 2019-05-13T22:06:48.029400Z

https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows asks for feedback so here goes : I dislike the fact that clj and clojure are poweshell commands.. Here is an exemple of a problem i had. I was giving a try to the fulcro lein template, and it's using tools.deps as well as shadow-cljs. Since we're using tools.deps, shadow-cljs has to use the clojure command.. which for some reason isn't visible to node (i guess?) even when starting shadow-cljs from a powershell console

carkh 2019-05-13T22:09:35.030400Z

In the end i was able to "roll my own" by placing this script named clojure.cmd in the project directory :

carkh 2019-05-13T22:09:51.031Z

That thing is of course brittle as can be

carkh 2019-05-13T22:11:09.031400Z

Powershell is its own little world...

carkh 2019-05-13T22:13:50.033600Z

shadow-cljs is likely one of the firsts use cases for some newcomers, i don't think that's a good first experience with the clojure world. Anyways, not really a problem to me, but i wanted to share that feedback

alexmiller 2019-05-13T22:26:14.034400Z

Thanks, we’ve talked about shipping a cmd wrapper with it

carkh 2019-05-13T22:33:20.034800Z

great news ! thanks for all the awesome work on clojure