CLI 0.32.1 won't find local platform(s)

I just switched from CLI 0.31.0 to 0.32.1 (issue appears on 0.32.0-rc1) resulting in a build error saying:

Error during build: Platform 'myname:architecture' not found: platform not installed
Platform myname:architecture is not found in any known index
Maybe you need to add a 3rd party URL?

but the hardware directory structure (containing a custom SAMD boards definition) is unchanged and still present in the sketchbook folder.

Also output from core list is different:

Using Arduino-CLI 0.31.0, Windows 64-bit, zip file: (custom platform found)

C:\Users\User\Playground\projects\arduino-cli\sketchbook>arduino-cli.exe version
arduino-cli.exe  Version: 0.31.0 Commit: 940c9457 Date: 2023-02-22T16:15:54Z

C:\Users\Luca\Playground\projects\arduino-cli\sketchbook>arduino-cli.exe core list
ID              Installed Latest Name
arduino:samd    1.8.13    1.8.13 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
esp32:esp32     2.0.7     2.0.7  esp32
esp8266:esp8266 3.1.1     3.1.1  esp8266
rp2040:rp2040   3.1.0     3.1.0  Raspberry Pi Pico/RP2040
myname:architecture      1.8.9     1.8.9  MyName SAMD Boards (32-bits ARM Cortex-M0+)

Using Arduino-CLI 0.32.0-rc1, Windows 64-bit, zip file: (custom platform NOT found but other two cores found, AVR and megaAVR installed in another package folder, i.e. Arduino IDE default folder)

C:\Users\User\Playground\projects\arduino-cli\sketchbook>arduino-cli.exe version
arduino-cli.exe  Version: 0.32.0-rc.1 Commit: fe91ec6e Date: 2023-04-05T08:43:13Z

C:\Users\Luca\Playground\projects\arduino-cli\sketchbook>arduino-cli.exe core list
ID              Installed Latest Name
arduino:avr     1.8.6     1.8.6  Arduino AVR Boards
arduino:megaavr 1.8.8     1.8.8  Arduino megaAVR Boards
arduino:samd    1.8.13    1.8.13 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
esp32:esp32     2.0.7     2.0.7  esp32
esp8266:esp8266 3.1.2     3.1.2  esp8266
rp2040:rp2040   3.1.0     3.1.0  Raspberry Pi Pico/RP2040

Thanks for any help on that.

Same problem even after core caching regression fix (0.32.2)...

Hi @neutrinonet. Sorry for the slow response. Please try running this command:

arduino-cli config dump --verbose

You should see a line in the output with this form that shows the path of the active configuration file:

time="2023-04-20T06:32:40-07:00" level=info msg="Using config file: C:\\Users\\per\\AppData\\Local\\Arduino15\\arduino-cli.yaml"

Does the path of the active configuration file match your expectation?

The reason I ask is because there was a breaking change in 0.32.0 that changes the locations where Arduino CLI will recognize and use a configuration file:

The local platform is installed under the path set by the directories.user configuration key. So if you had a custom directories.user configuration set in your arduino-cli.yaml configuration file and that file was no longer recognized by Arduino CLI, that would cause Arduino CLI to revert ot using the default directories.user location, and thus cause your custom platform to no loger be recognized.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.