mbed-tools configure
fails due to multiple mbed-os paths being searched
#323
Labels
bug
Something isn't working
Issue
The same error as #234 (see error message below), possibly caused by using a shared instance of mbed-os.
Error
ValueError: Setting <random configuration setting> already defined. You cannot duplicate config settings!
(The setting name changes every time the command is executed)
Details
I believe this issue is caused when
assemble_config()
finds thembed-os/
path withinprogram.root
, and then thembed-os/
path is also passed in viaprogram.mbed_os.root
.mbed-tools/src/mbed_tools/build/config.py
Lines 36 to 38 in 519d3ec
In the above snipped, if I remove
program.mbed_os.root
everything works correctly.To Reproduce
mbed-os-example-blinky
mbed-tools configure -m NRF52_DK -t GCC_ARM
Expected behavior
The
mbed-tools configure -m NRF52_DK -t GCC_ARM
command should configure thembed-os-example-blinky
project for CMake.Desktop (please complete the following information):
Mbed (please complete the following information):
The text was updated successfully, but these errors were encountered: