This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-02
Channels
- # announcements (3)
- # asami (29)
- # babashka (62)
- # beginners (131)
- # biff (7)
- # calva (31)
- # cider (5)
- # clerk (14)
- # clj-kondo (3)
- # cljsrn (12)
- # clojars (18)
- # clojure (72)
- # clojure-austin (17)
- # clojure-dev (6)
- # clojure-europe (31)
- # clojure-indonesia (1)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-sweden (11)
- # clojure-uk (6)
- # clr (47)
- # conjure (42)
- # cursive (88)
- # datalevin (2)
- # datomic (25)
- # emacs (42)
- # exercism (1)
- # fulcro (10)
- # funcool (8)
- # gratitude (2)
- # honeysql (16)
- # introduce-yourself (5)
- # jobs-discuss (26)
- # leiningen (5)
- # lsp (31)
- # malli (21)
- # matcher-combinators (14)
- # missionary (2)
- # nbb (1)
- # off-topic (40)
- # pathom (38)
- # portal (2)
- # re-frame (7)
- # reagent (18)
- # reitit (1)
- # releases (5)
- # shadow-cljs (62)
- # sql (12)
- # testing (4)
- # xtdb (37)
I have an issue that's maybe not related to clerk, but maybe someone has run into it here? When I require clerk in most my projects, everything works is stunning! But after adding certain libraries to my notebook projects, I get an error like this when trying to require clerk:
; (err) Execution error (NoClassDefFoundError) at java.lang.Class/forName0 (Class.java:-2).
; (err) Could not initialize class clojure.tools.analyzer.jvm__init
I believe this has something to do with my local libraries (they are provided to the local maven repo by running lein install
).
Anybody have suggestions on how to proceed with figuring out the problem?I would first try if the problem goes away if you declare a top level dep on tools analyzer (and jvm)
^ That, plus you should also look deeper in the stacktrace to see if the actual problem is reported there.
Thanks!
I've done the following:
1. Nuked my ~/.m2/repository
folder for good measure
2. Verified I can start clerk without my library
3. re-provoked the error, this is the trace: https://gist.github.com/emilaasa/6639aacbdb3d4df1abdea9d32e1a0a92
4. added the top level deps as mkvlr suggested
But the issue persists.
I don't really know how to interpret the stack trace. Any ideas would be welcome š
That's weird.
Afaict, there's nothing more really in the stacktrace.
I would try to clean up any project caches (`lein clean` or equivalent)
and make sure to remove all the extra global dependencies (from ~/.lein/profiles.clj
)
@jaydeesimon here is a first take on docs for how to do custom ClojureScript, and how to extend the SCI environment: https://clerk-utils.mentat.org/#custom-clojurescript-builds
this is now in main
ā¦ if it looks good I will do a release. Then the next step is to add āhow to use with Clerkā guides to all of these other projectsā¦
@jaydeesimon lmk if you get this working and have any suggestions, Iāll get those in before release
Just had a read and looks good to me!
Unfortunately, I didn't have time to work on getting @nivo/line working in my sample repo but hoping to get some time tomorrow Edit: my wife put the baby to bed so snuck in some time and https://clojurians.slack.com/archives/C035GRLJEP8/p1675387103714179?thread_ts=1675271575.764119&cid=C035GRLJEP8 š