Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork436
Open
Description
Describe the problem
While using profiles – especially in the case of a default one has been specified –--dump-profile generates a wrong output, in the sense that it completely forgets about the currently selected profile.
To reproduce
❯ lssketch_mar22a.ino sketch.yaml
❯ cat sketch_mar22a.ino#include<Arduino_JSON.h>voidsetup() {// put your setup code here, to run once:}voidloop() {// put your main code here, to run repeatedly:}
❯ cat sketch.yamlprofiles:default:fqbn:arduino:renesas_portenta:portenta_c33platforms: -platform:arduino:renesas_portenta (1.1.0)libraries: -Arduino_JSON (0.2.0)default_profile:default
❯ arduino-cli compileDownloading platform arduino:renesas_portenta@1.1.0...Downloading index: package_index.tar.bz2 downloadedarduino:renesas_portenta@1.1.0 downloadedInstalling platform arduino:renesas_portenta@1.1.0...Downloading tool arduino:bossac@1.9.1-arduino5...arduino:bossac@1.9.1-arduino5 downloadedInstalling tool arduino:bossac@1.9.1-arduino5...Downloading tool arduino:dfu-util@0.11.0-arduino5...arduino:dfu-util@0.11.0-arduino5 downloadedInstalling tool arduino:dfu-util@0.11.0-arduino5...Downloading library Arduino_JSON@0.2.0...Arduino_JSON@0.2.0 downloadedInstalling library Arduino_JSON@0.2.0...The library Arduino_JSON has been automatically added from sketch project.Sketch uses 109584 bytes (5%) of program storage space. Maximum is 2097152 bytes.Global variables use 20756 bytes (3%) of dynamic memory, leaving 502868 bytesforlocal variables. Maximum is 523624 bytes.
❯ arduino-cli compile --dump-profileprofiles:portenta_c33:fqbn:arduino:renesas_portenta:portenta_c33platforms: -platform:arduino:renesas_portenta (1.1.0)
Expected behavior
When using a profile,--dump-profile should output the configuration of the current profile.
Arduino CLI version
arduino-cli Version: git-snapshot Commit:869fced Date: 2025-08-27T15:20:15Z
Operating system
macOS
Operating system version
ProductVersion: 26.0 BuildVersion: 25A354
Additional context
No response
Issue checklist
- I searched for previous reports inthe issue tracker
- I verified the problem still occurs when using thenightly build
- My report contains all necessary details