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.
littleli 2019-09-07T14:14:19.001700Z

Hello everyone! Is anyone awake to chat about experiences of installing clojure on windows? Too bad there is no visible history of communication 😞

borkdude 2019-09-07T14:20:58.002100Z

@ales.najmann If you go to zulip archives, there you can read the history of this channel.

littleli 2019-09-07T14:26:21.002700Z

ah! there is also zulip, good to know!

borkdude 2019-09-07T14:27:01.003100Z

although the channels there may be less active, don't know, I hardly visit there

borkdude 2019-09-07T14:27:19.003300Z

but at least the history is there

littleli 2019-09-07T14:28:47.004100Z

slack is popular I guess.

littleli 2019-09-07T14:30:10.005700Z

btw about yesterday I've got in the mood of playing with this cool Clojure programming language I've been using about a year ago. But now on Window machine and... it turns out I got stuck very quickly.

littleli 2019-09-07T14:33:45.007400Z

Install instrutions on clojure site are modest. There is a powershell script available, which probably works but since I needed also java and other tools I'm used to I was looking around for something more powerful.

littleli 2019-09-07T14:34:34.008Z

I went over scoop and I was surprised there is no official, or less official scoop bucket.

littleli 2019-09-07T14:35:08.008500Z

I've even found some gist with working bucket definition... but it was just gist

littleli 2019-09-07T14:35:28.009Z

and now I see @malyn is even sitting here. oh my

littleli 2019-09-07T14:35:34.009200Z

it was his gist

littleli 2019-09-07T14:36:20.010Z

How do you use Clojure on windows? I mean clj and clojure?

littleli 2019-09-07T14:56:09.010200Z

Hope this helps someone https://github.com/littleli/scoop-clojure

borkdude 2019-09-07T15:06:37.010500Z

yes, scoop is very nice

borkdude 2019-09-07T15:08:50.011300Z

@ales.najmann Nice work, that seems very useful

littleli 2019-09-07T15:11:40.013300Z

I think it's @malyn who deserves thanks 🙂 I just exposed it to repo, put there broader suggestions of java runtime and readme.

seancorfield 2019-09-07T17:33:55.014100Z

@ales.najmann I've installed the Powershell CLI tools on all my Windows machines. https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows

seancorfield 2019-09-07T17:34:48.014900Z

Mostly it's waiting for some Windows-savvy volunteers to contribute the polish and packaging to take it across the finish line -- but it works just fine as-is.

seancorfield 2019-09-07T17:36:10.016500Z

The other way I use Clojure "on Windows" is via Microsoft's bash on Windows Linux set up -- but that runs slower in general (due to file I/O issues -- should be fixed in WSL 2 but that requires Windows 10 Pro because of the virtualization it leverages).

littleli 2019-09-07T17:37:25.016800Z

Yes. That makes sense for users used to Linux / Mac setups.

seancorfield 2019-09-07T17:38:13.017700Z

I don't have Scoop but that repo looks nice.

littleli 2019-09-07T17:38:48.018400Z

The biggest advantage is, you don't run into permission issues. It's in your profile.

seancorfield 2019-09-07T17:39:17.019200Z

Good to know. I think that's been the most varied and frustrating aspect of the current PS scripts.

littleli 2019-09-07T17:40:20.020Z

Exactly 🙂 I was actually surprised that nobody took @malyn script to complete the experience. It worked on first try.

littleli 2019-09-07T17:41:03.020900Z

Another good thing about using scoop of course is, that usually developers needs more then single tool and there is good opportunity that utility can be found there too.

seancorfield 2019-09-07T17:43:18.021700Z

I see it downloads the clojure-tools ZIP for version 447 -- how does that relate to the PS script linked from the wiki page which is version 469? Doh! I should have just looked in the PS1 file!

seancorfield 2019-09-07T17:45:41.022100Z

I edited https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows to add a link to that Scoop repo as an example.

littleli 2019-09-07T17:48:12.022800Z

I should probably update. It's the version referenced from the original script.

1
littleli 2019-09-07T17:49:44.023600Z

Scoop has some ability to check updates automatically... I have to figure that out

littleli 2019-09-07T18:09:32.024600Z

Updated

1
seancorfield 2019-09-07T19:19:52.025500Z

Just installed Scoop and then installed the latest Clojure Tools via your bucket @ales.najmann -- very, very smooth!

littleli 2019-09-07T19:23:33.026400Z

I need to add version check though, because now I guess you won't be able to update when new version kicks in

littleli 2019-09-07T19:24:00.026800Z

I promise I'll take a look soon

littleli 2019-09-07T21:38:17.028700Z

@seancorfield ok, so I have scoop checkver for checking new version and scoop autoupdate. it's more for a maintainer than for user. As long as you maintain referencing working version on that wiki page it would be easy to keep updated.

seancorfield 2019-09-07T22:02:08.029200Z

@ales.najmann Thanks. Does the wiki page need to be updated? I'm not quite sure what your comment means...

seancorfield 2019-09-07T22:03:05.029700Z

Oh, I get it... it gets the current version from the wiki page! Good to know...

👍 1
seancorfield 2019-09-07T22:22:56.031500Z

I uninstalled and then reinstalled to get the new version with the checks 🙂