clj-on-windows 2022-04-12

@spapas did you check the linked document? https:/go.microsoft.com/fwlink/?LinkID=135170

I get

Get-ExecutionPolicy -List

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser    RemoteSigned
 LocalMachine    Unrestricted

maybe yours if set different?

Serafeim Papastefanos 2022-04-12T06:30:04.050629Z

@thheller i was actually able to install it using this project https://github.com/borkdude/deps.clj

Serafeim Papastefanos 2022-04-12T06:30:26.198909Z

however i understand that clj does not create new projectt so i ended up using lein anyway

@spapas There's https://github.com/seancorfield/clj-new for the CLI/`deps.edn` which is based on lein new, and https://github.com/seancorfield/deps-new which is the simpler, newer version based solely on clojure.tools.build -- feel free to ask Qs in #deps-new about either of those.

Note that since you're on Windows, you'll run into the weird quoting issues described in https://clojure.org/reference/deps_and_cli#quoting

(my recommendation for Windows users is to use WSL2, if possible, so you can just follow all the normal macOS/Linux instructions for all Clojure tools -- only about 5% of Clojure developers use Windows with Powershell)

Serafeim Papastefanos 2022-04-12T14:54:48.229339Z

Thank you !

Serafeim Papastefanos 2022-04-12T14:55:12.813769Z

I'm one of the few that use cmd.exe :(

You'll find life difficult with Clojure -- all the books and tutorials assume macOS/Linux and a lot of tooling and libraries won't work on cmd/PS (or won't work directly "as documented").

Seriously consider adding WSL2 and using bash instead -- it will make your Clojure journey a lot easier. VS Code understands WSL2 so you can use it natively on Windows, even with all your files on WSL2. That's my setup.

Serafeim Papastefanos 2022-04-12T15:00:11.480949Z

Thanks I'll keep it in my mind next time I hit a wall!