clj-on-windows

thheller 2022-04-12T06:29:10.479549Z

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

thheller 2022-04-12T06:29:39.789149Z

I get

Get-ExecutionPolicy -List

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

thheller 2022-04-12T06:29:44.852839Z

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

seancorfield 2022-04-12T14:53:15.089869Z

@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.

seancorfield 2022-04-12T14:53:47.216299Z

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

seancorfield 2022-04-12T14:54:37.737139Z

(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 :(

seancorfield 2022-04-12T14:56:00.846189Z

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").

seancorfield 2022-04-12T14:57:28.259359Z

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!