How to suppress warnings about namespace replacements?

463 views
Skip to first unread message

Laws

unread,
Feb 1, 2022, 12:22:28 PM2/1/22
to Clojure
I get a lot of warnings like this:

WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/boolean?


Is there an official way to acknowledge that I'm aware of this namespace issue, such that the warnings disappear? 

Alex Miller

unread,
Feb 1, 2022, 6:44:50 PM2/1/22
to Clojure
Most likely a newer version of this library exists that addresses these warnings. In this particular case, the issue was fixed in June 2016 as of tools.analyzer version 0.6.9.

In a namespace with this issue, you can address like this:

(ns whatever
  (:refer-clojure :exclude [boolean?]))

But you can't really do that from outside the namespace or suppress this warning otherwise.

Alex

Laws

unread,
Feb 2, 2022, 12:19:28 PM2/2/22
to Clojure
Thank you.
Reply all
Reply to author
Forward
0 new messages