This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-11
Channels
- # announcements (8)
- # beginners (17)
- # boot (1)
- # cider (20)
- # cljdoc (7)
- # cljs-dev (14)
- # clojure (62)
- # clojure-dev (16)
- # clojure-hamburg (1)
- # clojure-russia (2)
- # clojure-spec (22)
- # clojure-uk (15)
- # clojurebridge (1)
- # clojurescript (23)
- # core-async (4)
- # core-logic (17)
- # cursive (2)
- # datomic (4)
- # duct (1)
- # figwheel-main (40)
- # fulcro (15)
- # leiningen (1)
- # off-topic (27)
- # re-frame (3)
- # shadow-cljs (9)
- # specter (3)
- # sql (59)
I was trying to do lein install
of master clojurescript on my machine, it seems to produce .jar and place it into .m2
, but when compiling my project, it complains java.lang.IllegalArgumentException: Not a file: jar:file:/Users/darwin/.m2/repository/org/clojure/clojurescript/1.10.339/clojurescript-1.10.339.jar!/cljs/util.cljc
any ideas what went wrong? this used to work on my machine previously, also the produced jar has cljs/util.cljc
inside and it is not corrupted, I double checked it with jar
cmd line tool
tried lein clean
in various places, deleting .m2, running script/bootstrap, and bunch of random things without success
@mfikes thanks, running script/build
prior lein install
fixed the issue, it’s been a while since I worked with clojurescript repo and forgot to run this step
Cool. I have no idea what lein install
does. (I never do it in the ClojureScript repo.)
I have to look into it, I used lein install to override jar version, I don’t want to mess with my project.clj in dependent projects when testing out master
and lein checkouts feature does not work well for clojurescript (at least I had troubles making it work)
Ahh, cool. Yeah, I often do the trick of evaluating a CLOJURESCRIPT_VERSION
environment variable in project.clj
, but now I’ve moved on to using lein-tools-deps
or just deps.edn directly. But all of those are invasive changes.
(The nice things about the deps-based approach is you can depend directly on the source tree of master.)
I have to learn those new tools, reusing versions the way I do it is tricky because of possible caching on multiple levels, so then I have to defensively clear all caches and it is not obvious to me how they work, I’m then randomly deleting folders, doing lein clean in various places until I get the expected results 😉