This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-23
Channels
- # adventofcode (13)
- # announcements (7)
- # atom-editor (2)
- # babashka (6)
- # beginners (77)
- # biff (2)
- # calva (14)
- # cider (25)
- # circleci (2)
- # clj-on-windows (39)
- # clojars (1)
- # clojure (36)
- # clojure-belgium (4)
- # clojure-europe (78)
- # clojure-norway (25)
- # clojure-spec (1)
- # clojurescript (11)
- # clr (1)
- # cursive (1)
- # datahike (43)
- # datomic (6)
- # dev-tooling (3)
- # emacs (5)
- # exercism (1)
- # jobs (1)
- # jobs-discuss (3)
- # kaocha (2)
- # lsp (32)
- # malli (4)
- # music (1)
- # off-topic (14)
- # pathom (4)
- # reitit (14)
- # shadow-cljs (5)
- # tools-deps (3)
- # vim (1)
- # xtdb (5)
Borkdude the Reddit questions are cool but is there an actual tutorial/ guide for getting started in Windows? Even if there is, is it linked from the clojure homepage ?
The http://clojure.org Getting Started page links to https://clojure.org/guides/install_clojure which has a Windows section that links to https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows
...or shorter https://github.com/littleli/scoop-clojure/wiki/Getting-started-VERY-QUICKLY
Not linked/reachable from http://clojure.org tho', right?
@UBLU3FQRZ Perhaps you can also mention the Calva getting started and Clojure getting started guides in that Getting started document.
@U04V15CAJ I'll find a way to squeeze it in. Good idea.
Ok you probably won't believe it but I had actually written such a guide https://www.spapas.net/2022/04/14/clojure-windows/ some months ago and completely forgotten about it. :face_with_spiral_eyes:
Sean the windows section you mention starts with "Currently, clj on Windows is in an alpha state.". This notice is there for years!
And the PowerShell script is probably going to be retired
Also the fact that it's only about powershell is not very friendly to people that use cmd
There's talk of an MSI installer now
Installer would be cool but maybe allow an extra option of getting the binaries in a zip?
What binaries?
These that would be installed by the msi installer :)
There are no binaries in the Clojure CLI
It's a couple of JAR files and some scripts
Ok ok I mean these files
Put them in a zip so people can download them and extract them wherever they want
That doesn't seem like a very intuitive approach for windows folks
Well this is what I prefer (I'm a Windows folk)
And there's still the issue of what those scripts are for windows. Hence talk of an MSI installer
All my machines are windows. I don't want a zip of files
I tried the MSI installer. It works
I am not fond of installers because i don't know what they do. A zip will put files only where I'll extract it and won't mess with my path or env vars or registry
This is part of the problem: ask a dozen windows users what they want and you get two dozen different responses:grin:
I think wsl2 is the best solution. Then you can follow all the books and tutorials which assume Linux/macOS
Wsl2 is good but I'd only use it as a last resort because it doesn't fit my workflow.
Well no one is going to create a zip you can use on windows
Well deps clj has such a zip https://github.com/borkdude/deps.clj/releases 😁
That seems to actually use the deps.clj
Yup. That may be the way to go on windows
If you want a manual zip approach just download the deps.clj zip binary, unzip it and then copy this binary to clj.exe and clojure.exe. This is effectively what happens inside the clj-msi installer. Scoop install clj-deps does the same thing
I agree, MSI yuck! What is this, 1998 and I'm installing Java? Next thing you know there's an adware in the MSI 😛... though I don't mind the option the adware joke is a jab at the Java installer that installed Ask Toolbar What would the MSI solve anyways? How does it get around the finicky powershell script and having to maintain an sh and a powershell script?
Installs as clojure.exe and clj.exe
Installs latest version of ClojureTools jar
Sets PATH and sets DEPS_CLJ_TOOLS_DIR appropriately
Supports per-user or per-machine installation
Supports setting alternate installation location during install
Displays a warning if the ClojureTools PowerShell module is detected.
Oh, an MSI that installs deps.clj, ok I'm more into that 😛