platformio / platformio/platformio-core
WMI failures in getting local drive list show no indication of failure
Nobody has claimed this yet.
- 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
- Force Windows Update to break WMI?
Additional info
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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