-
-
Notifications
You must be signed in to change notification settings - Fork 398
CLI provides insufficient BoardDetails#build_properties
info when the platform is installed via Git
#2197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
BoardDetails#build_properties
info when the platform is installed via Git
@dankeboy36 is this about the missing espressif/arduino-esp32@8fca365 Check out the |
|
Thank you!
It's about all missing
My tests check out the
That is a super helpful remark. I made some progress, but somewhere, there is a bug. I will reuse snippets from the attached files to #2197 (comment) to describe the situation. The FQBN is For Relevant "tools.xtensa-esp-elf-gdb.path": "/Users/dankeboy36/Desktop/dev/arduino-ide-esp-exception-decoder/test-resources/envs/cli/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/11.2_20220823",
"tools.xtensa-esp32-elf-gcc.path": "/Users/dankeboy36/Desktop/dev/arduino-ide-esp-exception-decoder/test-resources/envs/cli/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0", The expected path is ![]() Relevant "tools.xtensa-esp-elf-gdb.path": "/Users/dankeboy36/Desktop/dev/arduino-ide-esp-exception-decoder/test-resources/envs/git/Arduino/hardware/esp32/esp32/tools/xtensa-esp-elf-gdb",
"tools.xtensa-esp32-elf-gcc.path": "/Users/dankeboy36/Desktop/dev/arduino-ide-esp-exception-decoder/test-resources/envs/git/Arduino/hardware/esp32/esp32/tools/xtensa-esp32-elf", When installed from Git, the CLI's board properties response expands the ![]() I do not know the details of the property expansion, but I think this is either a bug in the CLI or my tool lookup logic should handle corner cases which I wanted to avoid and rely solely on the CLI. |
Your hardware folder has wrong structure. It should be |
This was the problem. When executing the Thank you! It's not a CLI bug. |
Describe the problem
I have noticed when a platform is installed from git, instead of the Boards Manager (
./arduino-cli core install id
), then theBoardDetails#build_properties
fails to provide sufficient information to calculate required tool paths. See arduino/arduino-ide#2071 (comment).To reproduce
Install the esp32 platform manually via Git, and run the get board details command for
esp32:esp32:esp32
(the FQBN can beespressif:esp32:esp32
if you strictly follow the steps).The missing
runtime.tools.*
is the real problem for the Git-installed platform:diff.json.txt
installed_from_boards_manager.json.txt
installed_from_git.json.txt
If you have
npm
,node
,python
,jq
installed, you can clone my repository and run the tests. It will create the test environment. It takes a few minutes.To get the complete
build_proepties
from the CLI (boards manager) installation:./test-resources/cli-releases/install/0.33.0/arduino-cli board details -b esp32:esp32:esp32 --config-file ./cli/arduino-cli.yaml --format json | jq .build_properties
To get the bogus
build_proepties
from the Git installation:./test-resources/cli-releases/install/0.33.0/arduino-cli board details -b esp32:esp32:esp32 --config-file ./git/arduino-cli.yaml --format json | jq .build_properties
Expected behavior
The
BoardDetails#build_proeprties
keys are the same when the platform is installed via the boards manager and Git.Arduino CLI version
0.33.0
Operating system
macOS
Operating system version
11.7.7
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: