This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-31
Channels
- # announcements (3)
- # babashka (75)
- # beginners (16)
- # calva (124)
- # cider (10)
- # clara (2)
- # clj-kondo (1)
- # cljdoc (4)
- # cljs-dev (14)
- # clojure (104)
- # clojure-australia (4)
- # clojure-czech (5)
- # clojure-europe (14)
- # clojure-germany (48)
- # clojure-nl (4)
- # clojure-serbia (4)
- # clojure-uk (34)
- # clojurescript (60)
- # community-development (16)
- # conjure (12)
- # core-async (34)
- # cursive (42)
- # data-science (7)
- # deps-new (9)
- # depstar (1)
- # emacs (11)
- # events (2)
- # fulcro (15)
- # graalvm (1)
- # inf-clojure (1)
- # jobs (3)
- # jobs-discuss (1)
- # joker (7)
- # juxt (8)
- # lsp (20)
- # malli (42)
- # meander (4)
- # off-topic (5)
- # pathom (2)
- # polylith (13)
- # re-frame (39)
- # reagent (9)
- # reitit (31)
- # releases (2)
- # rewrite-clj (23)
- # shadow-cljs (39)
- # spacemacs (11)
- # specter (6)
- # tools-deps (8)
- # xtdb (12)
yes, by depending on the org.clojure/clojurescript {:mvn/version "1.10.844"}
I guess we get the uberjar?
issue can be reproduced:
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.773"} org.clojure/tools.reader {:mvn/version "1.3.2"}}}' -e "(require 'clojure.tools.reader.edn)"
WARNING: When invoking clojure.main, use -M
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.844"} org.clojure/tools.reader {:mvn/version "1.3.2"}}}' -e "(require 'clojure.tools.reader.edn)"
Downloading: org/clojure/clojurescript/1.10.844/clojurescript-1.10.844.pom from central
Downloading: org/clojure/clojurescript/1.10.844/clojurescript-1.10.844.jar from central
WARNING: When invoking clojure.main, use -M
Syntax error compiling at (clojure/tools/reader/edn.clj:75:9).
No such var: err/throw-no-dispatch
Full report at:
/var/folders/c0/hfmx64kj4dx3y8dp772l_s6w0000gn/T/clojure-12053108925244442985.edn
likely the AOT'd code not the uberjar. you can use org.clojure/clojurescript$slim
to avoid such conflicts
yes sorry, my bad. the 3fdaabed
we tested before already was the change with the uberjar, as @mkvlr point out to me.
unfortunately since that is a different artifact id you'll still very likely get an additional org.clojure/clojurescript
from some dependency 😛
would be better IMHO to have the slim as the default org.clojure/clojurescript
and a separate opt-in org.clojure/clojurescript$aot
but that would have the same issues so nothing gained really
And if you encounter libraries depending on org.clojure/clojurescript, I think it is a good idea to create issue about moving the dependency to dev profile or provided scope or such. Makes it easier for applications to select correct version.
@thheller thank you, I did not know how to get the slim version. @juhoteperi good point, will start with our own libs then 😅