deps-new

fabrao 2022-01-28T00:40:25.341849Z

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

seancorfield 2022-01-28T00:59:02.638229Z

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

fabrao 2022-01-28T01:00:51.989979Z

powershell

fabrao 2022-01-28T01:01:02.464449Z

WSL is working

seancorfield 2022-01-28T01:01:34.362569Z

Did you read the note in the readme about Windows?

seancorfield 2022-01-28T01:02:34.026429Z

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

seancorfield 2022-01-28T01:04:12.921899Z

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

seancorfield 2022-01-28T01:05:12.485089Z

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

seancorfield 2022-01-28T01:05:47.203369Z

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

fabrao 2022-01-28T01:11:17.583529Z

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

fabrao 2022-01-28T01:15:28.956159Z

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

seancorfield 2022-01-28T01:34:18.698559Z

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.

seancorfield 2022-01-28T01:34:30.597759Z

What does clojure -version say?

seancorfield 2022-01-28T01:38:02.269779Z

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)

fabrao 2022-01-28T01:53:38.027749Z

clojure -version
Invoke-Clojure: Clojure CLI version 1.10.3.1069

seancorfield 2022-01-28T01:56:07.967659Z

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.

seancorfield 2022-01-28T01:58:04.667059Z

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.

fabrao 2022-01-28T02:11:30.945679Z

Sure, thank you