This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-30
Channels
- # announcements (12)
- # babashka (25)
- # biff (30)
- # cherry (34)
- # cider (46)
- # clj-kondo (23)
- # clojure (37)
- # clojure-berlin (6)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (6)
- # clojure-uk (2)
- # clojurescript (8)
- # conjure (1)
- # cursive (4)
- # data-science (11)
- # datalevin (12)
- # datascript (15)
- # emacs (2)
- # events (1)
- # fulcro (14)
- # graalvm (16)
- # gratitude (23)
- # honeysql (11)
- # jobs (2)
- # jobs-discuss (14)
- # kaocha (1)
- # leiningen (8)
- # nbb (45)
- # off-topic (7)
- # portal (8)
- # re-frame (9)
- # releases (2)
- # shadow-cljs (24)
- # squint (5)
- # tools-build (17)
- # tools-deps (7)
- # vim (5)
I’ve restarted working on a project that has worked for me before and the first command I’ve ran had this enigmatic message:
roklenarcic@Roks-MacBook-Pro paginator % clj -Tbuild test
Error building classpath. Bad coordinate for library , expected map: nil
I don’t see anyhing special in deps and it’s been untouched since last release build tons of time ago
:aliases {:build {:deps {io.github.seancorfield/build-clj
{:git/tag "v0.8.0" :git/sha "9bd8b8a"}}
:ns-default build}
That is a validation error on the structure of your deps.edn, might be in your main :deps, not in the alias
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/core.async {:mvn/version "1.3.618"}}
:aliases {:build {:deps {io.github.seancorfield/build-clj
{:git/tag "v0.8.3" :git/sha "7ac1f8dee188894cee4199aaf2fbe7c6708a8680"}}
:ns-default build}
:test {:extra-paths ["test"]
:extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
io.github.cognitect-labs/test-runner
{:git/tag "v0.5.0" :git/sha "48c3c67"}
clj-http/clj-http {:mvn/version "3.10.1"}
cheshire/cheshire {:mvn/version "5.10.0"}}}}}
Could also be in your .clojure/deps.edn
Because clj -Spath -T:build
works
But clj -Tbuild
doesn’t
Ah, it’s :build not build
sorry about htat
But that should be a better error, sorry about that
-Tbuild
would try to invoke an installed tool called build
; -T:build
uses the alias :build
actually, seems like seems like I did improve this error in 1.10.3.1040 so maybe you're on an older version
on current I get Error building classpath. Unknown tool: build
Folks gotta keep their CLIs up-to-date 🙂
1.10.3.1040 was nine months ago...