platformio / platformio/platformio-core

WMI failures in getting local drive list show no indication of failure

Open
#4,499 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

device management known issue
Dominant language
Python
Stars
9.5k
Forks
905
Avg merge
2d 13h
Merged PRs (30d)
2

Description

What kind of issue is this?

  • Feature Request.

When going to Devices->Logical, indicate an error in getting the drives list instead of being entirely blank.

Similarly for when trying to start a new project or open an existing one. With WMI failing, unchecking "Use default location" loads an empty list under Devices, instead of indicating an error getting the device list.

edit: This also occurs using CLI command "pio device list --logical". It just returns nothing instead of indicating an error parsing from wmic.


Configuration

VSCode in Windows 10, probably Windows in general:

Description of problem

WMI initialization issues cause "wmic logicaldisk get name,VolumeName" to return "invalid namespace" instead of the list of drives.

A Windows problem for sure, but there's no indication from PIO what's actually going on.

Steps to Reproduce
  1. Force Windows Update to break WMI?
Additional info

https://learn.microsoft.com/en-us/answers/questions/684166/failed-to-initialize-all-required-wmi-classes.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing pio device list --logical while wmic logicaldisk get name,VolumeName returns invalid namespace, then compare that behavior with the Devices→Logical and project-location flows. Trace how the WMI drive-list failure is handled and make the affected interfaces report the failure instead of showing an empty list.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.