This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-14
Channels
- # adventofcode (38)
- # announcements (42)
- # aws (3)
- # babashka (8)
- # beginners (165)
- # calva (36)
- # chlorine-clover (14)
- # cider (6)
- # clj-kondo (5)
- # cljsrn (33)
- # clojure (27)
- # clojure-australia (1)
- # clojure-czech (1)
- # clojure-doc (1)
- # clojure-europe (26)
- # clojure-nl (6)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (10)
- # code-reviews (20)
- # conjure (1)
- # core-logic (5)
- # cursive (3)
- # data-science (5)
- # datomic (35)
- # emacs (1)
- # figwheel-main (3)
- # fulcro (10)
- # honeysql (1)
- # introduce-yourself (4)
- # jobs (3)
- # jobs-discuss (4)
- # minecraft (2)
- # missionary (28)
- # nextjournal (3)
- # off-topic (45)
- # pathom (7)
- # polylith (1)
- # portal (22)
- # practicalli (2)
- # re-frame (4)
- # reagent (19)
- # releases (3)
- # remote-jobs (3)
- # reveal (1)
- # rum (4)
- # shadow-cljs (37)
- # spacemacs (14)
- # sql (1)
- # tools-build (7)
- # tools-deps (16)
- # vim (13)
- # xtdb (15)
Hi all, may be an issue with the way I’ve configured things, but intermittently, and seemingly at random, I get this on running my build tool:
Exception in thread "Thread-4" java.lang.ExceptionInInitializerError
at clojure.tools.deps.alpha.util.S3TransporterFactory.triggerLoad(S3TransporterFactory.java:44)
at clojure.tools.deps.alpha.util.S3TransporterFactory.access$100(S3TransporterFactory.java:29)
at clojure.tools.deps.alpha.util.S3TransporterFactory$1.run(S3TransporterFactory.java:49)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: Syntax error compiling at (clojure/tools/reader/impl/errors.clj:71:4).
at clojure.lang.Compiler.analyze(Compiler.java:6812)
at clojure.lang.Compiler.analyze(Compiler.java:6749)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3824)
Works fine when I run it again. Here’s my deps.edn:
{:paths []
:deps {org.clojure/clojure {:mvn/version "1.11.0-alpha3"}
com.eldrix/clods {:git/url ""
:sha "168de00f083c5b6c538375a37cc1a9ec523283ea"
:exclusions [potemkin/potemkin]}
com.eldrix/concierge {:git/url ""
:sha "326f729f126db069a3d59c8294f7345c0bda7f40"}
com.eldrix/hermes {:git/url ""
:sha "4c7d17bea26caa8169baa0cc2f62e09c1afd2fad"}}
:aliases {:build {:deps {io.github.clojure/tools.build {:git/tag "v0.7.2" :git/sha "0361dde"}}
:ns-default build}}}
It feels like some kind of race condition or lack of clean build, but I don’t know how to investigate further. Is there something I can do to debug it?I believe this is now fixed on latest tools.build v0.7.3
would be happy for feedback if you find otherwise
@mark354 Perhaps this workaround will work for you: https://github.com/clj-easy/graal-build-time/blob/b91cd78a977fdf81758705668f44b0d2ddad4bdc/build.clj#L1 Are you perhaps creating more than one basis?
Thanks! I will try that for now. I just tried to run six times before making that change to prove that this was going to fix the issue, and typically, it didn’t fail once, so hard to reproduce for me at least. Thank you!
it is a race condition with namespace loading and a bug in tools.deps, haven't had a chance to work on it yet
Thank you that’s helpful to know - and thanks for your work on this - really enjoying having this control over build process - so otherwise it is working nicely thank you!