Fork me on GitHub
#deps-new
<
2022-01-28
>
fabrao00:01:25

hello all, I don´t know what is happening with my Windows Env for this clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag "v1.2.381"}' :as clj-new is getting error Error building classpath. Unknown tool: tools

seancorfield00:01:02

@fabrao Are you using WSL, Powershell, or cmd.exe?

fabrao01:01:51

powershell

fabrao01:01:02

WSL is working

seancorfield01:01:34

Did you read the note in the readme about Windows?

seancorfield01:01:34

> Note: if you are on Windows, read https://clojure.org/reference/deps_and_cli#quoting in the official Deps and CLI Reference documentation to understand how the above commands need to look on Powershell.

seancorfield01:01:12

(I added this note to both clj-new and deps-new today in response to Powershell users not knowing how to quote strings properly -- pointing to the fairly recently-added piece in the official deps/CLI docs about it!)

seancorfield01:01:12

My advice (once again): use WSL2 on Windows, do not use Powershell or cmd.exe -- because nearly all the books and tutorials and READMEs out there assume Linux/macOS (which is fine for WSL2 -- but not for Powershell or cmd.exe).

seancorfield01:01:47

90% of Clojurians use Linux or macOS. Of the remaining 10% on Windows, half use WSL2. Don't be like that 5% 🙂

fabrao01:01:17

Yes, I tried to use clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag \"v1.2.381\"}' :as clj-new or clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag """v1.2.381"""}' :as clj-new

fabrao01:01:28

look that strange:

clj -Ttools list
Error building classpath. Unknown tool: tools

powershell -c command "clj -Ttools list"

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Invoke-Clojure                                     1.10.3.... ClojureTools

seancorfield01:01:18

If clj -Ttools list doesn't work then your CLI installation is either broken or too old -- and that has nothing to do with deps-new or clj-new.

seancorfield01:01:30

What does clojure -version say?

seancorfield01:01:02

Per the clj-new README, you need at least 1.10.3.933 for the tools stuff to work: Note: these instructions assume you are using the Clojure CLI version 1.10.3.933 or later! -- see https://clojure.org/releases/tools for information about the CLI versions (the latest version is 1.10.3.1096 at this point)

fabrao01:01:38

clojure -version
Invoke-Clojure: Clojure CLI version 1.10.3.1069

seancorfield01:01:07

And clojure -Ttools list still doesn't work? Then go to #clj-on-windows and ask for help with the Powershell version since there's something wrong with your installation.

seancorfield01:01:04

I'm happy to help folks with Linux/macOS or WSL2 (Ubuntu) issues but I don't use Powershell and I don't recommend it for Clojure work and I can't offer support for it.

fabrao02:01:30

Sure, thank you