I have a project with numerous environments defined in platformio.ini.
Almost every time I update platformio.ini or do a compile, PlatformIO goes into an infinite loop updating the configuration. Very strange. Especially since it’s installing a library that isn’t called for in the selected environment.
[env]
build_src_filter = -<*.*>
framework = arduino
monitor_filters = time
monitor_speed = 115200
build_flags =
-D DEVELOPMENT_MODE
-D ENABLE_FUNCTION_TRACING
-D ENABLE_SERIAL_PRINT
[env:feather_32u4_base]
extends = env
platform = atmelavr
board = feather32u4
upload_port = /dev/cu.usbmodem1442401
monitor_port = /dev/cu.usbmodem1442401
[env:mac_address_test_32u4]
extends = env:feather_32u4_base
build_src_filter = +<macAddressTest.cpp>
build_flags =
${env.build_flags}
-D MAC_ADDRESS_PRINTABLE
-D MAC1="0x02, 0x44, 0x50, 0x01, 0x00, 0x01"
-D MAC2="0x024450010002"
Here is the output from the config operation:
Resolving mac_address_test_32u4 dependencies...
Library Manager: Installing arduino-libraries/Ethernet @ ^2.0.0
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Library Manager: Ethernet@2.0.2 has been installed!
Already up-to-date.
Updating metadata for the vscode IDE...
Configuration process has been terminated!
As you can see, it’s installing the Ethernet library which is not listed as a dependency for the environment.
After displaying that message, the notice in the lower-right goes away and a few seconds later it comes back and repeats the process.
It will eventually error out with a “too many something or other request” error.
What on earth is causing this and how do I fix it?
TIA,
D.