Skip to content

Fix already refers warnings in Clojure 1.11 #348

@skylee03

Description

@skylee03
WARNING: abs already refers to: #'clojure.core/abs in namespace: taoensso.encore, being replaced by: #'taoensso.encore/abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: zero-one.geni.core.functions, being replaced by: #'zero-one.geni.core.functions/abs
WARNING: cat already refers to: #'clojure.core/cat in namespace: net.cgrand.parsley.fold, being replaced by: #'net.cgrand.parsley.fold/cat
WARNING: abs already refers to: #'clojure.core/abs in namespace: tech.v3.datatype.functional, being replaced by: #'tech.v3.datatype.functional/abs
WARNING: infinite? already refers to: #'clojure.core/infinite? in namespace: tech.v3.datatype.functional, being replaced by: #'tech.v3.datatype.functional/infinite?
WARNING: random-uuid already refers to: #'clojure.core/random-uuid in namespace: tech.v3.io.uuid, being replaced by: #'tech.v3.io.uuid/random-uuid

Updating dependencies can resolve some of these warnings, but updating them all may introduce new conflicts.

The second warning can be solved in Geni's code.

What we need to do:

  • Upgrade dependencies to versions where these warnings are solved
    • com.taoensso/nippy from 3.1.1 to 3.3.0
    • techascent/tech.ml.dataset from 5.21 to 6.101
      • Newer versions of TMD will introduce some new warnings.
        Reflection warning, ham_fisted/api.clj:1144:12 - call to method expireAfterAccess on com.google.common.cache.CacheBuilder can't be resolved (no such method).
        Reflection warning, ham_fisted/api.clj:1146:12 - call to method expireAfterWrite can't be resolved (target class is unknown).
        Reflection warning, ham_fisted/api.clj:1148:12 - reference to field softValues can't be resolved.
        Reflection warning, ham_fisted/api.clj:1150:12 - reference to field weakValues can't be resolved.
        Reflection warning, ham_fisted/api.clj:1152:12 - call to method maximumSize can't be resolved (target class is unknown).
        Reflection warning, ham_fisted/api.clj:1154:12 - reference to field recordStats can't be resolved.
        
    • midje from 1.10.3 to 1.10.9
    • Fixed in Fix already refers warnings in Clojure 1.11 #352
  • Exclude abs in src/clojure/zero_one/geni/core.clj
  • Exclude abs in src/clojure/zero_one/geni/core/functions.clj
  • Wait for some dependencies to solve their own issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions