Skip to content

v0.9 no longer displays the name of the duplicate key and table on parse #1012

@zanieb

Description

@zanieb

See https://github.com/zanieb/toml-regression-1 for a simple reproduction

In 0.8.19

TOML parse error at line 4, column 1
  |
4 | python-multipart = "https://example.com/bar.whl"
  | ^
duplicate key `python-multipart` in table `tool.uv.sources`

In 0.9.2

TOML parse error at line 4, column 1
  |
4 | python-multipart = "https://example.com/bar.whl"
  | ^^^^^^^^^^^^^^^^
duplicate key

It seems okay to avoid repeating python-multipart but the "table ..." part seems pretty helpful.

Originally discovered at astral-sh/uv#14571 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-errorArea: Error reporting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions