Skip to content

CLJS error: Wrong number of args (2) passed to MapEntry at line 39 #58

Description

@metametadata

deep-diff2 2.13.231, clojurescript 1.12.42 and 1.12.134:

WARNING: Wrong number of args (2) passed to MapEntry at line 39 resources/private/js/testable/out/lambdaisland/deep_diff2/minimise_impl.cljc

Seems to be caused by misplacing nil in a3977b2?

Activity

  1. plexus commented on Apr 20, 2026

    @plexus
    Member

    Can you put together a repro? MapEntry has had a three argument constructor since it was added in 2017.

    (deftype MapEntry [key val ^:mutable __hash] ,,,)

    The hash is initialized as nil, and gets populated on access.

  2. metametadata commented on Apr 20, 2026

    @metametadata
    Author

    I think I've found the actual problem. The artifact at https://clojars.org/lambdaisland/deep-diff2/versions/2.13.231 is built from the older commit 25bca3d where the MapEntry. call has 2 args instead of 3:

    (MapEntry. (key o) (minimise (val o)))))

    This is also confirmed by looking inside the downloaded JAR for 2.13.231.

  3. plexus commented on Apr 20, 2026

    @plexus
    Member

    Right, this change hasn't actually been released yet. Note that it's perfectly safe to ignore this warning.

  4. plexus commented on Apr 20, 2026

    @plexus
    Member

    Released in

    [lambdaisland/deep-diff2 "2.14.235"]
    {lambdaisland/deep-diff2 {:mvn/version "2.14.235"}}
  5. metametadata commented on Apr 20, 2026

    @metametadata
    Author

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions