This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-13
Channels
- # announcements (18)
- # babashka (11)
- # beginners (29)
- # biff (2)
- # cider (14)
- # clojure (98)
- # clojure-boston (1)
- # clojure-europe (5)
- # clojure-korea (2)
- # clojure-madison (1)
- # clojure-norway (2)
- # clojurescript (10)
- # community-development (5)
- # fulcro (8)
- # lambdaisland (1)
- # nbb (1)
- # nrepl (107)
- # pathom (4)
- # pedestal (5)
- # portal (1)
- # rdf (2)
- # reitit (7)
- # releases (1)
- # rum (2)
- # shadow-cljs (8)
- # squint (18)
- # timbre (3)
- # xtdb (18)
hey all - I’m trying to compile from the API (so that I can do a single jack-in using Calva) but if my user ns requires taoensso.timbre, then shadow-cljs throws an error trying to compile taoensso.encore. If I use the same aliases but don’t include the (ns user)
from the alias then shadow can compile. It looks like it stems from this line in encore https://github.com/taoensso/encore/blob/bbfa1a022e529109933aa168ce2d2e983bf0b38e/src/taoensso/encore.cljc#L1112
(when-let [ns (find-ns 'cljs.analyzer.api)
v (ns-resolve ns 'resolve)]
where @v returns nil instead of a function.sorry I don't really understand the problem. please explain more what you are doing and less what you think the problem is 😛
I believe this may have already been addressed https://clojurians.slack.com/archives/C1J6MQC2H/p1713003367095429?thread_ts=1712975112.202269&cid=C1J6MQC2H and on https://github.com/taoensso/encore/issues/74#issuecomment-2053603695.
@UASETR481 FWIW shadow.cljs.devtools.api
is basically the same as calling things from the command line, just from the clojure REPL. so shadow-cljs watch app
becomes (shadow.cljs.devtools.api/watch :app)
same for all the other available cli commands. all have an identical clojure fn to call.
Thanks Thomas! And thank you for all the hard work on shadow-cljs
, I just recently had the opportunity to start using it - and it’s an amazing tool. Much appreciated! Cheers :-)