Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for clearer error message parsing pyproject.toml #9900

Open
Evan0000000000 opened this issue Dec 12, 2024 · 0 comments
Open

Request for clearer error message parsing pyproject.toml #9900

Evan0000000000 opened this issue Dec 12, 2024 · 0 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@Evan0000000000
Copy link

Issue Kind

Change in current behaviour

Description

When the tool.poetry.source section in pyproject.toml is provided as a [single table] rather than [[array of tables]] the error poetry provides isn't very helpful:

The Poetry configuration is invalid:
  - data.source must be array

A more descriptive error and/or a reference to what section or line in the toml would be a little more friendly. Tried this with -vvv and the stack trace also doesn't give a clue to what part of the toml is actually the problem.

A more broad way to phrase it, if you like, might be "toml structure errors should report a line or section if possible"

Impact

Some more info in the error would make troubleshooting faster; as it is one either 'just knows' the expected structure or goes section by section, which might be slower or faster depending on the size of pyproject.toml.

Workarounds

None that I'm aware of

@Evan0000000000 Evan0000000000 added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant