platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.73k stars 785 forks source link

Indicate platform installed from local directory #2081

Closed benwaffle closed 5 years ago

benwaffle commented 5 years ago

When working on platform code, i did pio install ~/dev/platform-ststm32. Now pio platform list has two ststm32 entries:

ststm32 ~ ST STM32
==================
The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development.

Home: http://platformio.org/platforms/ststm32
Frameworks: arduino, cmsis, libopencm3, mbed, spl, stm32cube
Packages: tool-stm32duino, framework-libopencm3, framework-arduinoststm32, toolchain-gccarmnoneeabi, framework-arduinostm32mxchip, tool-openocd, framework-spl, framework-stm32cube, framework-cmsis, framework-mbed, tool-jlink
Version: 4.6.0

ststm32 ~ ST STM32
==================
The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development.

Home: http://platformio.org/platforms/ststm32
Frameworks: arduino, cmsis, libopencm3, mbed, spl, stm32cube
Packages: tool-stm32duino, framework-libopencm3, framework-arduinoststm32, toolchain-gccarmnoneeabi, framework-arduinostm32mxchip, tool-openocd, framework-spl, framework-stm32cube, framework-cmsis, framework-mbed, tool-jlink
Version: 4.6.0

There is no way to distinguish between the two. It would be nice if this indicated that the repo was a local directory. If you run pio platform list --json-output, you can see that platformio knows about the local file path.

ivankravets commented 5 years ago

A temporary solution is to use platform = ~/dev/platform-ststm32 in platformio.ini.

ivankravets commented 5 years ago

Please re-test with pio upgrade --dev.