This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-28
Channels
- # announcements (4)
- # aws (2)
- # babashka (56)
- # beginners (43)
- # calva (70)
- # clj-kondo (25)
- # cljs-dev (29)
- # clojure (103)
- # clojure-dev (9)
- # clojure-europe (55)
- # clojure-gamedev (8)
- # clojure-nl (5)
- # clojure-norway (5)
- # clojure-uk (4)
- # clojured (1)
- # clojurescript (56)
- # copenhagen-clojurians (1)
- # core-async (2)
- # cursive (16)
- # datomic (5)
- # deps-new (18)
- # emacs (9)
- # events (3)
- # fulcro (45)
- # graphql (2)
- # gratitude (2)
- # kaocha (6)
- # lambdaisland (8)
- # lsp (72)
- # meander (41)
- # missionary (5)
- # nextjournal (52)
- # off-topic (2)
- # pathom (12)
- # pedestal (2)
- # practicalli (1)
- # re-frame (6)
- # reitit (5)
- # releases (1)
- # reveal (1)
- # specter (3)
- # sql (4)
- # tools-deps (22)
- # vim (8)
- # wasm (1)
- # xtdb (22)
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?
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)
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.