This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-06
Channels
- # announcements (16)
- # aws (9)
- # babashka (76)
- # beginners (92)
- # boot (1)
- # cider (18)
- # clara (7)
- # clj-kondo (26)
- # clojure (104)
- # clojure-europe (4)
- # clojure-nl (11)
- # clojure-spec (11)
- # clojure-survey (101)
- # clojure-uk (35)
- # clojuredesign-podcast (18)
- # clojurescript (8)
- # core-async (29)
- # data-science (1)
- # datomic (13)
- # emacs (4)
- # fulcro (20)
- # graalvm (14)
- # instaparse (2)
- # jobs (1)
- # juxt (6)
- # malli (5)
- # off-topic (30)
- # onyx (3)
- # planck (1)
- # project-updates (7)
- # re-frame (38)
- # reagent (30)
- # reitit (14)
- # remote-jobs (2)
- # shadow-cljs (50)
- # sql (8)
Hello everyone, I am seeing a very confusing side effect when I upgrade to the latest datomic version. When I upgrade to com.datomic/datomic-pro "0.9.6014"
it breaks my cljs test compilation with this error:
clojure.lang.ExceptionInfo: failed compiling file:out/cljs/test.cljs {:file #object[.File 0x6759042b "out/cljs/test.cljs"], :clojure.error/phase :compilation}
...
Caused by: clojure.lang.ExceptionInfo: Reader tag must be a symbol {:type :reader-exception, :line 376, :column 13, :file "/asdf/out/cljs/test.cljs"}
Here is the offending line: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs#L376
For some reason it can't read the ##NaN
.
The tests are run via lein-cljsbuild/doo and karma-cljs-test
I have verified just changing between 0.9.6014 and 5981 causes this issue. I also checked the new datomic-pro version doesn't bring in a new version of clojurescript or anything, the only transitive dependency it updates is com.datomic/client-api
. I upgraded all dependencies that are possibly involved (clojurescript, karma, etc) and that didn't help.Older CLJSs don’t understand this; perhaps your dep tree got shook up in such a way that it ended up downgrading cljs?
hmm thanks. lein deps :tree
shows I'm using org.clojure/clojurescript "1.10.597"
but it's possibly I don't completely understand how lein doo and cljsbuild work and they're using an older version?
lein with-profile test deps :tree
should force the test profile on and you can see if the tree is different
could also be cljs is on the classpath multiple times and it’s picking up older compiled classes and newer non-classes. try cleaning target and out?
Any version of 1.10 should be fine with ##NaN
right? with-profile shows the same clojurescript deps, and looking at the classpath printed by lein I don't see any clojurescript jar that's not clojurescript-1.10.597.jar
. Although it does fetch clojurescript-1.10.238
when I fetch deps in a new docker container. From figwheel it looks like