clj-on-windows

Richard 2022-09-01T17:15:18.751309Z

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) 2022-09-01T17:32:14.181409Z

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

Alex Miller (Clojure team) 2022-09-01T17:32:53.033469Z

so cc @borkdude on that

Alex Miller (Clojure team) 2022-09-01T17:34:06.242799Z

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) 2022-09-01T17:34:27.257879Z

(not exactly sure where ~ will be here)

Alex Miller (Clojure team) 2022-09-01T17:36:46.067649Z

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

Alex Miller (Clojure team) 2022-09-01T17:40:58.635809Z

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

borkdude 2022-09-01T18:15:34.561439Z

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

borkdude 2022-09-01T18:22:01.308139Z

Ah I see what the issue is.

borkdude 2022-09-01T18:26:10.217939Z

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

borkdude 2022-09-01T18:44:32.830239Z

I'm working on a fix now

borkdude 2022-09-01T18:59:40.956539Z

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

👍 1
1
borkdude 2022-09-01T19:01:18.964509Z

Yep, worked :)

Richard 2022-09-01T19:31:55.342639Z

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

🎉 1
borkdude 2022-09-01T19:33:10.902229Z

@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

borkdude 2022-09-01T19:42:27.814999Z

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

borkdude 2022-09-01T19:42:46.720079Z

</shameless-plugs>

👍 2
😄 1