Skip to content

Unable to handle TOML with mixed-value arrays (as used by dependency groups) #25413

Closed

Description

Type: Bug

Behaviour

The extension is unable to parse TOML files which have lists containing a mixture of types.

This is an issue when using Dependency groups such as:

[dependency-groups]
dev = [
  "ruff==0.12.9",
  { include-group = "test" },
]
test = ["pytest"]

Steps to reproduce:

  1. Add the above section to a project using pyproject.toml, and watch the logs.

Additional Details

The error originates from the isPipInstallableToml function and is in fact an error within the upstream @iarna/toml package. See the upstream bug report.

Extension version: 2025.13.2025082101
VS Code version: Code - Insiders 1.104.0-insider (986f8e6054200db6e8215bbcb216f3cd2429eb4d, 2025-08-21T05:03:53.575Z)
OS version: Darwin arm64 24.6.0
Modes:

Activity

  1. eleanorjboyd commented on Aug 22, 2025

    @eleanorjboyd

    Thank you! Will keep an eye on the upstream issue and see what happens there.

  2. github-actions commented on Sep 22, 2025

    @github-actions

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

    Happy Coding!

  3. JP-Ellis commented on Sep 22, 2025

    @JP-Ellis
    Author

    Eleanor Boyd (@eleanorjboyd) Any update on this? I have a PR related to this which seems to pass all CI.

  4. added a commit that references this issue on Nov 12, 2025
    e70b2a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions