Unwanted repos appearing in Source Control

A number of additional repos have started to appear in my Source Control sidebar (see those marked in red in the image below). These appear to be related to PlatformIO itself. I’m not sure when this started but probably soon after I performed the last ESP32 platform upgrade within PlatformIO. I can right-click and close these repos individually but soon enough they reappear. I can restart PlatformIO and they all disappear but also pop back sooner or later. Any ideas what is going on and, more importantly, how to fix it?

The first one appears to be framework-espidf of version v4.3, then following that are all the sub-repos that that thing has, like, micro-ecc. You likely have something in the workspace using a version of framework-espidf obtained via git, maybe originally obtained via platform_packages instruction. What does pio platform update espressif32 show in a CLI?

Here are the results and I see there is a reference to github in there. I recall trying to use 4.3 in advance of it being incorporated into PlatformIO so I guess that might explain matters. The only question is now is how to fix this.

Platform espressif32

Updating platformio/espressif32 3.3.1 [Up-to-date]
Updating platformio/toolchain-xtensa32 2.50200.97 @ ~2.50200.0 [Up-to-date]
Updating platformio/toolchain-esp32ulp 1.22851.191205 @ ~1.22851.0 [Up-to-date]
Updating platformio/framework-arduinoespressif32 3.10006.210326 @ ~3.10006.0 [Up-to-date]
Updating git+https://github.com/maxgerhardt/esp-idf.git#release/v4.3 3.40300.160621+sha.71f77dc @ ~3.40300.0[Up-to-date]
Updating platformio/tool-esptoolpy 1.30100.210531 @ ~1.30100.0 [Up-to-date]
Updating platformio/tool-openocd-esp32 2.1000.20210721 @ ~2.1000.0 [Up-to-date]
Updating platformio/tool-mkspiffs 2.230.0 @ ~2.230.0 [Up-to-date]
Updating platformio/tool-cmake 3.16.4 @ ~3.16.0 [Up-to-date]
Updating platformio/tool-ninja 1.9.0 @ ^1.7.0 [Up-to-date]

Yeah you used my repo at some point :smiley: PlatformIO has built in framework-espidf since platform version 3.3.0 that you should use rather than my repo. I’d just recommend removing the C:\Users\<user>\.platformio\packages\framework-espidf folder completely, then building the ESP-IDF based PlatformIO project again to get PlatformIO’s official version. The git repos should then be gone.

1 Like

Yup, that did the trick. Many thanks.