Skip to content

Feedback: An item with the same key has already been added. #686

Description

@matthid

If you add the same item twice to a paket.references file you get:

Locked version resolutions written to \paket.lock
Paket failed with:
        An item with the same key has already been added.

I would suggest that paket should at least tell me which file is invalid :).
The error message itself could also be improved.
This could be a bug as well.

Activity

  1. forki commented on Mar 8, 2015

    @forki
    Member

    I agree the error message is unfortunate. Could you please come up with a minimal repro?

  2. matthid commented on Mar 8, 2015

    @matthid
    MemberAuthor

    Yeah its really simple you can just use paket.references:

    FSharp.Core
    FSharp.Core
    

    OR https://gist.github.com/matthid/f617043240b36e096483

  3. forki commented on Mar 9, 2015

    @forki
    Member

    image

  4. matthid commented on Mar 9, 2015

    @matthid
    MemberAuthor

    Very cool, a real time-saver in the future 👍 , thanks!

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