Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PlatformIO IDE Upload toolbar button throws TypeError reading id (build and CLI upload still work) #5475

Copy link
Copy link

Description

@Asbelos
Issue body actions

Summary
Toolbar Upload fails in the extension host with undefined object access. Non-toolbar upload paths succeed, indicating an extension UI/task-state issue rather than a backend upload failure.

Environment

  • OS: Windows
  • VS Code build: fc3def6774
  • PlatformIO IDE extension: 3.3.4
  • PlatformIO Core: 6.1.19

Observed behavior

  • Build command: succeeds.
  • Upload via PlatformIO task/CLI: succeeds, exit code 0.
  • Upload via toolbar button: throws TypeError and is unreliable.

Relevant error signatures seen in extension host logs

  • TypeError: Cannot read properties of undefined (reading 'id')
    • in PlatformIO extension runTask path
    • invoked through toolbar command flow (runToolbarButtonCommand / onButtonClick)
  • Also seen in same session:
    • Error: command platformio-ide.build already exists
    • TypeError: Cannot read properties of undefined (reading 'args') in task argument handling

Repro steps

  1. Open PlatformIO project.
  2. Select target environment.
  3. Click toolbar Upload.
  4. Observe TypeError in extension host.
  5. Run equivalent task/CLI upload command.
  6. Observe successful upload.

Expected behavior

  • Toolbar Upload should execute without extension-side exceptions and match task/CLI behavior.

Actual behavior

  • Toolbar Upload path throws extension exceptions even though the underlying upload path is valid.

Impact

  • Users with multiple dynamic COM devices cannot rely on toolbar Upload, even though normal upload commands work.
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.