Panic when platform of referenced tool command pattern not installed #2042
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
Arduino boards platforms can reference resources from other platforms. This introduces a dependency on the referenced platform. Arduino CLI does not support automatic installation of these dependencies along with the dependent platform, so the user must handle the installation, which they don't always do.
If the platform for a referenced tool command pattern is not installed, Arduino CLI panics when running an operation that uses the tool.
🐛 Arduino CLI does not clearly communicate the cause of the error to the user.
To reproduce
🐛
Expected behavior
Arduino CLI only panics on unexpected (i.e., caused by a bug in the Arduino CLI codebase) failures. Any failure that can result from normal (even if incorrect) usage should be handled gracefully and the problem clearly communicated to the user.
Arduino CLI version
a58d5ad
Operating system
Operating system version
Additional context
For the sake of simplicity, I simulated the required conditions in the demo by modifying the
arduino:avr
platform. For a real world occurrence, do an upload using version 0.1.5 of this platform without thesandeepmistry:nRF5
platform installed.Originally reported by @ljunquera at https://forum.arduino.cc/t/no-connections-established/1048343/19
Issue checklist
The text was updated successfully, but these errors were encountered: