Fork me on GitHub
#clj-on-windows
<
2022-09-01
>
Richard17:09:18

Hi - I've installed deps.clj, using powershell: PowerShell -Command "iwr -useb | iex" I've tried to install deps-new deps -Ttools install io.github.seancorfield/deps-new "{:git/tag """v0.4.13"""}" :as new but I get the following error: Error building classpath. Unknown tool: tools Is there a guide I can follow to debug my issue or add the parts I'm missing? Thanks for any advice.

Alex Miller (Clojure team)17:09:14

I think this is an issue with deps.clj not installing tools.tools

Alex Miller (Clojure team)17:09:06

I think you could create a file in ~/.clojure/tools/tools.edn with:

{:lib io.github.clojure/tools.tools
 :coord {:git/tag "v0.2.8"
         :git/sha "9c5baa56cff02de98737a71d4dab098b268cd68b"}}

Alex Miller (Clojure team)17:09:27

(not exactly sure where ~ will be here)

Alex Miller (Clojure team)17:09:46

maybe "C:\Document and Settings\YourUserName" ?

Alex Miller (Clojure team)17:09:58

for sure, you can just run deps then (System/getProperty "user.home") to tell

borkdude18:09:34

The tools/tools.edn stuff should be installed according to this bit: https://github.com/borkdude/deps.clj/blob/7e8773f7554d788ee6ca4d0e60b85b05f20a8066/src/borkdude/deps.clj#L498-L504 But I'll try to repro on my Windows system

borkdude18:09:01

Ah I see what the issue is.

borkdude18:09:10

What @alexmiller says, but the location should probably be "C:\Users\YourUserName\.clojure\tools\tools.edn"

borkdude18:09:32

I'm working on a fix now

borkdude18:09:40

@richard Should work now, if you try to re-install - I'll also re-test this on my Windows system

gratitude 1
👍 1
borkdude19:09:18

Yep, worked :)

Richard19:09:55

Yes - I can confirm that worked. Thank you @borkdude and @alexmiller

🎉 1
borkdude19:09:10

@richard Another "fun" way to use deps-new is like this: https://github.com/seancorfield/deps-new#babashka-cli It allows you to call it like a regular CLI:

clj -M:new app --name foo/bar --overwrite delete

borkdude19:09:27

Also, when you install neil, you get deps-new for free: https://github.com/babashka/neil with neil new ...

borkdude19:09:46

</shameless-plugs>

👍 2
😄 1