Skip to content

WARNING: abs already refers to: #'clojure.core/abs #77

@2food

Description

@2food

Starting clj with factual/geo 3.0.1 as a dependency prints these warnings:

WARNING: abs already refers to: #'clojure.core/abs in namespace: clojure.math.numeric-tower, being replaced by: #'clojure.math.numeric-tower/abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: geo.spatial, being replaced by: #'clojure.math.numeric-tower/abs

clojure.core/abs was added in 1.11.

The latest version of clojure.math.numeric-tower (0.1.0) now has a (:refer-clojure :exclude [abs]) which makes it explicitly not include abs which avoids triggering the warning.

So, solving this will involve updating numeric-tower, and then in geo.spatial either
a. Add a (:refer-clojure :exclude [abs])
b. Require clojure.math.numeric-tower with an alias rather than with :use.
c. Use clojure.core/abs instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions