Skip to content

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

@JP-Ellis

Description

@JP-Ellis

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:

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postertriage-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