Skip to content

Error when running "pio run --list-targets" command #105

Description

@bobby-mcbuilder

To Reproduce
Run

pio run --list-targets

Expected Behavior
Print a list of all targets in all environments, according to https://docs.platformio.org/en/latest/core/userguide/cmd_run.html#cmdoption-pio-run-list-targets

Observed Bahavior
Error message printed:

UndefinedEnvPlatformError: Please specify platform for 'embedded' environment

System Information

  • OS and version: WSL2/Ubuntu 26.04
  • Program version: Latest 592c826

Additional context
Following command works as intended:

pio run -e wiscore_rak4631 --list-targets

Probably related to using [env:embedded] instead of [embedded] in platformio.ini, see: https://docs.platformio.org/en/latest/projectconf/sections/env/options/advanced/extends.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions