This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-20
Channels
- # aleph (2)
- # announcements (4)
- # aws (3)
- # beginners (141)
- # calva (9)
- # clj-kondo (1)
- # clojure (3)
- # clojure-boston (2)
- # clojure-brasil (1)
- # clojure-houston (1)
- # clojure-italy (4)
- # clojuredesign-podcast (1)
- # clojurescript (22)
- # cursive (2)
- # data-science (1)
- # emacs (26)
- # fulcro (22)
- # juxt (1)
- # off-topic (28)
- # onyx (3)
- # pedestal (4)
- # reagent (10)
- # reitit (6)
- # shadow-cljs (9)
- # spacemacs (2)
- # tools-deps (29)
- # yada (1)
Q: has anyone seen and fixed this warning “SLF4J: Class path contains multiple SLF4J bindings.”
for the life of me I can’t figure out how to add the deps exclusion correctly in deps.edn
In the coordinate, add :exclusions [group/artifact]
thanks but I need to know which dep to exclude. I should have been clearer in my question.
here’s the warning I see
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/steve/.m2/repository/com/fzakaria/slf4j-timbre/0.3.13/slf4j-timbre-0.3.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/steve/.m2/repository/org/slf4j/slf4j-nop/1.7.7/slf4j-nop-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [com.github.fzakaria.slf4j.timbre.TimbreLoggerFactory]
I’m want to use timbre so this suggests I should exclude the slf4j-nop dep. when I examine my deps tree, that is a transitive dep from Clojure (via tools.deps). I can’t figure out how to exclude that completely, or if there’s a better way to do this?
@U0510KXTU something is wrong if your clojure depends on slf4j-nop
tools deps has a transitive slf4j dependency, which I've flagged up that it shouldn't have in https://clojure.atlassian.net/projects/TDEPS/issues/TDEPS-108?filter=allopenissues
is there a way to explicitely exclude that? maybe explicitely add tools.deps as a dep?
I think you just need to change your t.d.a dependency to have an exclusion of slf4j-nop?
I added one with the exlusion (same as datomic-free) but it’s still there for some reason. digging….
you legend! despite the presence in Cursive, the warning has gone at load time. that fixed it