Hi - I've installed deps.clj, using powershell:
PowerShell -Command "iwr -useb
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.
I think this is an issue with deps.clj not installing tools.tools
so cc @borkdude on that
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"}}(not exactly sure where ~ will be here)
maybe "C:\Document and Settings\YourUserName" ?
for sure, you can just run deps then (System/getProperty "user.home") to tell
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
Ah I see what the issue is.
What @alexmiller says, but the location should probably be "C:\Users\YourUserName\.clojure\tools\tools.edn"
I'm working on a fix now
@richard Should work now, if you try to re-install - I'll also re-test this on my Windows system
Yep, worked :)
Yes - I can confirm that worked. Thank you @borkdude and @alexmiller
@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
Also, when you install neil, you get deps-new for free:
https://github.com/babashka/neil
with neil new ...
</shameless-plugs>