This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-07-08
Channels
- # announcements (16)
- # beginners (22)
- # calva (3)
- # cider (17)
- # clojure (2)
- # clojure-berlin (1)
- # clojure-denmark (4)
- # clojure-dev (4)
- # clojure-europe (22)
- # clojure-madison (1)
- # clojure-nl (2)
- # clojure-norway (34)
- # clojure-sweden (3)
- # clojure-uk (3)
- # clojurescript (9)
- # datomic (7)
- # deps-new (1)
- # events (1)
- # fulcro (1)
- # hyperfiddle (10)
- # lsp (43)
- # missionary (1)
- # off-topic (27)
- # pedestal (10)
- # polylith (1)
- # reitit (4)
- # releases (1)
- # squint (18)
- # xtdb (8)
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.
> 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
>
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
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
I tried using neil and this also fails. There seems to be an issue resolving the git url:
$ 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
Is there a git/sha I can refer to?
By the way, I have no issues creating projects from other templates...