This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-24
Channels
- # announcements (1)
- # beginners (113)
- # calva (16)
- # cider (6)
- # cljsrn (1)
- # clojure (104)
- # clojure-argentina (2)
- # clojure-dev (3)
- # clojure-italy (1)
- # clojure-nl (10)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojuredesign-podcast (44)
- # clojurescript (25)
- # core-async (2)
- # datomic (21)
- # emacs (14)
- # events (1)
- # figwheel-main (12)
- # fulcro (7)
- # joker (2)
- # leiningen (1)
- # mount (7)
- # music (1)
- # off-topic (16)
- # pedestal (3)
- # re-frame (8)
- # reagent (8)
- # reitit (11)
- # shadow-cljs (4)
- # spacemacs (16)
- # sql (1)
- # tools-deps (14)
- # vim (1)
Is there any chance that "add-libs" branch on tools deps can be rebased from master so that the latest changes on master for the just released version can be brought in? The "add-lib" functionality is really really useful to have (along with the removal of the slf4j-nop library....)
Also waiting for these changes. I had to select a separate library with small edits for my needs. If interested, https://github.com/just-sultanov/clj-deps
@U064X3EF3 is usually pretty good about merging master back to the add-lib
branch -- esp. once we add-libbers ask for it 🙂
I merged it
merged master to it that is
You rock! Thank you!
@U11EL3P9U @U1EQNSHL4 SHA 148cab8f154711f8495bd632ebdc53a14dff7f09
to save you both going to look it up. I'm updating my dot-clojure repo right now...
thank you @U04V70XH6 @U064X3EF3
In my current project, I need to add libraries to the classpath not only in the REPL at development time. Therefore, I made small changes to the function add-loader-url
.
(defn- add-loader-url
"Add URL string or URL to the highest level DynamicClassLoader or URLClassLoader URL set."
[url]
(let [url (if (string? url) (URL. url) url)
thread (Thread/currentThread)
cl (loop [loader (.getContextClassLoader thread)]
(let [parent (.getParent loader)]
(if (instance? DynamicClassLoader parent)
(recur parent)
loader)))]
(if (instance? DynamicClassLoader cl)
(.addURL ^DynamicClassLoader cl url)
(let [loader (.getContextClassLoader thread)
urls (into-array URL [url])
cl (URLClassLoader. urls loader)]
(.setContextClassLoader thread cl)))))
seancorfield/clj-new
0.7.8 -- minor maintenance release: fixes -v
/ --verbose
option (betcha didn't know it was broke, eh?), updates dependencies and pins some new dependencies to avoid weird conflicts in some (Leiningen) templates -- I think that's due to the difference between tools.deps
and lein
/`boot` in terms of resolving conflicts (gotta love those pesky Jackson libraries!).