deps-new 2022-01-28

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

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

WSL is working

Did you read the note in the readme about Windows?

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

(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!)

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

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

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

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

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.

What does clojure -version say?

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)

clojure -version
Invoke-Clojure: Clojure CLI version 1.10.3.1069

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.

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.

Sure, thank you