Hi, I have a frustrating experience trying to create a new pedestal 0.7 project with the deps-new template on windows. http://pedestal.io/pedestal/0.7/guides/embedded-template.html Settings are done properly according to the documentation but when I execute ( clojure -A:1.12 -Tnew create :template io.github.pedestal/pedestal%embedded%io.pedestal/embedded :name com.blueant/peripheral ) I get this result Resolving io.github.pedestal/pedestal as a git dependency Execution error (IOException) at java.lang.ProcessImpl/create (ProcessImpl.java:-2). CreateProcess error=2, The system cannot find the file specified Could somebody please help me out a little ?
I don't know the answer but usually that's the error you get when your shell can't find the program you're trying to execute. Some things to check: clojure, java , and git - do those all run at your shell?
It could be an issue with %embedded% since that is the Windows cmd.exe notation for a shell variable
You might have luck with writing double percent signs instead: %%embedded%%
@alexmiller, yes, they do.
If you happen to have bb installed, you could drop into a bb REPL and then execute, to bypass shell issues:
(babashka.deps/clojure "-A:1.12" "-Tnew" "create" ":template" "io.github.pedestal/pedestal%embedded%io.pedestal/embedded" ":name" "com.blueant/peripheral")%%embedded%% didn't work
(I copied those args from the README you linked to)
I will try it with bb
well, urm I think I need to dig deeper tomorrow. The error message I've seeen with bb convinced me to try it again in the morning time.
I will give it another try tmrw. then . Thanks for your fast help!
something seems to shell out to clojure but this doesn't work if you have installed the CLI as a Powershell thing
I will try that tmrw then, thanks again!
Yes, deps-new relies on add-lib in Clojure 1.12, which runs a subprocess for clojure to do the resolution and fetching of the dependency.