Fork me on GitHub
#pedestal
<
2024-07-08
>
José Javier Blanco Rivero21:07:35

Hi! I'm trying to create a project using the pedestal deps-new template. I followed the steps provided here http://pedestal.io/pedestal/0.7/guides/embedded-template.html However, after executing clojure -A:1.12 -Tnew create :template io.github.pedestal/pedestal%embedded%io.pedestal/embedded :name com.blueant/peripheral the process fails with the following exception: Resolving io.github.pedestal/pedestal as a git dependency Execution error (ExceptionInfo) at clojure.tools.deps.interop/invoke-tool (interop.clj:51). null Full report at: /tmp/clojure-1673950301267027528.edn (the content of this file, in the image) I tried it both in Windows with Java 17 and with WSL Ubuntu with Java 21.

hlship19:07:51

> clojure -A:1.12 -Tnew create :template io.github.pedestal/pedestal%embedded%io.pedestal/embedded :name com.blueant/peripheral
Checking out:  at 1e900b4b61ed1975f89c622d6f91f6269f53b4fa
Resolving io.github.pedestal/pedestal as a git dependency
Creating project from io.pedestal/embedded in peripheral
> tree peripheral/
peripheral/
├── CHANGELOG.md
├── LICENSE
├── README.md
├── build.clj
├── deps.edn
├── dev
│   ├── com
│   │   └── blueant
│   │       └── peripheral
│   │           └── telemetry_test_init.clj
│   ├── dev.clj
│   └── user.clj
├── doc
│   └── intro.md
├── resources
│   ├── logback.xml
│   ├── pedestal-config.edn
│   └── public
│       └── index.html
├── src
│   └── com
│       └── blueant
│           └── peripheral
│               ├── main.clj
│               ├── routes.clj
│               ├── service.clj
│               └── telemetry_init.clj
├── start-jaeger.sh
├── test
│   └── com
│       └── blueant
│           └── peripheral
│               └── service_test.clj
└── test-resources
    ├── logback-test.xml
    └── pedestal-test-config.edn

17 directories, 20 files
> 

hlship19:07:39

Might be interesting to know which version of Clojure and Java are installed?

José Javier Blanco Rivero19:07:06

I tried with Clojure 1.12.0beta1 with the alias as suggested in the tutorial and the default version is 1.11.3. My java version is 21

José Javier Blanco Rivero21:07:28

This is weird. I also tried with Clojure 1.12.0-alpha5, updated tools.deps to 0.19.1432 and I'm still getting the same error

José Javier Blanco Rivero13:07:35

I tried using neil and this also fails. There seems to be an issue resolving the git url:

José Javier Blanco Rivero13:07:41

$ neil new io.github.pedestal/pedestal%embedded%io.pedestal/embedded com.sanatoriocolegiales/ladwebhoks
----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Message:  Failed to parse :git/url
Data:     {:git/url ""}
Location: /home/jrivero/bin/neil:241:7

----- Context ------------------------------------------------------------------
237:   (let [[[_ gh-user repo-name]] (or (re-seq github-repo-ssh-regex git-url)
238:                                     (re-seq github-repo-http-regex git-url))]
239:     (if (and gh-user repo-name)
240:       {:gh-user gh-user :repo-name repo-name}
241:       (throw (ex-info "Failed to parse :git/url" {:git/url git-url})))))
           ^--- Failed to parse :git/url
242:
243: (defn- git-url->lib-sym [git-url]
244:   (when-let [{:keys [gh-user repo-name]} (parse-git-url git-url)]
245:     (symbol (str "io.github." gh-user) repo-name)))
246:

----- Stack trace --------------------------------------------------------------
babashka.neil.new/parse-git-url     - /home/jrivero/bin/neil:236:1
babashka.neil.new/git-url->lib-sym  - /home/jrivero/bin/neil:244:42
babashka.neil.new/git-url->lib-sym  - /home/jrivero/bin/neil:243:1
babashka.neil.new                   - /home/jrivero/bin/neil:259:57
babashka.neil.git/latest-github-tag - /home/jrivero/bin/neil:72:1
... (run with --debug to see elided elements)
babashka.neil.new/deps-new-plan     - /home/jrivero/bin/neil:339:1
babashka.neil.new                   - /home/jrivero/bin/neil:426:18
babashka.neil/-main                 - /home/jrivero/bin/neil:1424:3
babashka.neil/-main                 - /home/jrivero/bin/neil:1423:1
babashka.neil                       - /home/jrivero/bin/neil:1478:3

José Javier Blanco Rivero14:07:23

Is there a git/sha I can refer to?

José Javier Blanco Rivero14:07:40

By the way, I have no issues creating projects from other templates...

hlship17:07:31

I'm at a loss; I can try w/ Java 21 and see if that makes a difference.

👍 1