Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added a compatibility trick in debug -I for toolchain.prefix key #2428

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

Merged
cmaglie merged 2 commits into arduino:master from cmaglie:debug-backward-compatibibilty
Nov 15, 2023

Conversation

Copy link
Member

@cmaglie cmaglie commented Nov 15, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

The debug.toolchain.prefix key was ignored in older versions of the Arduino IDE.

In the upcoming release (Arduino IDE 2.2.2) instead the key is used, but in the older releases of the platforms it was wrongly set to "arm-none-eabi-" when we actually want "arm-none-eabi".

This patch ensures backward and forward compatibility.

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change, and is titled accordingly?

Other information

The key was ignored in older versions of the Arduino IDE.
In the upcoming release (Arduino IDE 2.2.2) the key is used, but it was
wrongly set to "arm-none-eabi-" when we actually want "arm-none-eabi".
This patch ensure backward and forward compatibility.
@cmaglie cmaglie self-assigned this Nov 15, 2023
@cmaglie cmaglie added type: enhancement Proposed improvement topic: CLI Related to the command line interface labels Nov 15, 2023
@cmaglie cmaglie added this to the Arduino CLI v0.35.0 milestone Nov 15, 2023
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (6c86fa2) 67.27% compared to head (9e0443b) 67.33%.
Report is 2 commits behind head on master.

Files Patch % Lines
arduino/builder/internal/detector/detector.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #2428 +/- ##
==========================================
+ Coverage 67.27% 67.33% +0.05% 
==========================================
 Files 210 210 
 Lines 20523 20526 +3 
==========================================
+ Hits 13807 13821 +14 
+ Misses 5578 5566 -12 
- Partials 1138 1139 +1 
Flag Coverage Δ
unit 67.33% <85.71%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cmaglie cmaglie merged commit e071333 into arduino:master Nov 15, 2023
@cmaglie cmaglie deleted the debug-backward-compatibibilty branch November 15, 2023 16:42
cmaglie added a commit that referenced this pull request Nov 15, 2023
...hain.prefix` key (#2428)
* Added a compatibility trick in "debug -I" for toolchain.prefix key
The key was ignored in older versions of the Arduino IDE.
In the upcoming release (Arduino IDE 2.2.2) the key is used, but it was
wrongly set to "arm-none-eabi-" when we actually want "arm-none-eabi".
This patch ensure backward and forward compatibility.
* Fixed debug command
umbynos added a commit to arduino/ArduinoCore-mbed that referenced this pull request Nov 15, 2023
With newer versions of the IDE this was causing problems.
See arduino/arduino-cli#2428 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@umbynos umbynos Awaiting requested review from umbynos

@ubidefeo ubidefeo Awaiting requested review from ubidefeo

@MatteoPologruto MatteoPologruto Awaiting requested review from MatteoPologruto

1 more reviewer

@alessio-perugini alessio-perugini alessio-perugini approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
topic: CLI Related to the command line interface type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /