arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

The `core.GetPlatforms` function ignores the `all` field showing manually installed cores

Open umbynos opened this issue 4 years ago • 4 comments
trafficstars

The core.GetPlatforms function is not working as intended right now but the logic of this function is good. It ignores the All field in the rpc.PlatformListRequest showing the manually installed cores even if the All field is set to false. see https://github.com/arduino/arduino-cli/pull/1509#discussion_r730758844

umbynos avatar Oct 19 '21 14:10 umbynos

It seems to be the bug i've faced with too. If starting from scratch (or data dir cleaned): core list --all forces updating index (library_index, package_index) but GetPlatform with all passed called via gRPC just returns an empty list.

4ntoine avatar Oct 21 '21 10:10 4ntoine

Nope, it seems that all is used in the code. I will create another ticket for my issue

4ntoine avatar Oct 21 '21 11:10 4ntoine

@umbynos @4ntoine can we assume this is a closed issue in light of #1521 being merged?

ubidefeo avatar Apr 06 '22 09:04 ubidefeo

Actually that PR is not merged yet because the tests are not passing. It surely need some more investigation

umbynos avatar Apr 11 '22 13:04 umbynos

Fixed in: https://github.com/arduino/arduino-cli/pull/2357

alessio-perugini avatar Oct 24 '23 16:10 alessio-perugini