Skip to content
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

Allow empty programmer in debug command #2540

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Feb 15, 2024

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?

Allow optional programmer in debugging.

Normally configurations for debugging are layered one over the other in the following order:

  • platforms.txt
  • boards.txt (the part relative to the board selected)
  • boards.txt (the parts relative to the board options selected)
  • programmers.txt (the part relative to the programmer selected)

BTW some platforms seem to have managed to go without the programmers.txt facility. This is a tentative fix to support them.

What is the current behavior?

The CLI will fail to debug with the missing programmer error.

What is the new behavior?

The CLI will try to proceed with the debugging anyway.

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

No

Other information

This PR builds upon Arduino CLI 0.35.2.
@ubidefeo @kittaakos @per1234

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (01de174) 63.69% compared to head (de50b32) 63.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##           0.35.x    #2540      +/-   ##
==========================================
- Coverage   63.69%   63.59%   -0.11%     
==========================================
  Files         206      206              
  Lines       19487    19485       -2     
==========================================
- Hits        12412    12391      -21     
- Misses       6012     6031      +19     
  Partials     1063     1063              
Flag Coverage Δ
unit 63.59% <100.00%> (-0.11%) ⬇️

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.

kittaakos pushed a commit to arduino/arduino-ide that referenced this pull request Feb 15, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@cmaglie cmaglie self-assigned this Feb 15, 2024
@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Feb 15, 2024
@cmaglie cmaglie marked this pull request as ready for review February 19, 2024 13:11
@cmaglie cmaglie requested a review from a team February 19, 2024 13:12
@cmaglie cmaglie merged commit 95cfd65 into arduino:0.35.x Feb 19, 2024
91 of 92 checks passed
@cmaglie cmaglie deleted the debug_no_programmer branch February 19, 2024 13:15
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Feb 19, 2024
This is a cherry-pick of arduino#2540
from the 0.35.x branch
cmaglie added a commit that referenced this pull request Feb 19, 2024
This is a cherry-pick of #2540
from the 0.35.x branch
kittaakos pushed a commit to arduino/arduino-ide that referenced this pull request Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/arduino-ide that referenced this pull request Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/arduino-ide that referenced this pull request Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/arduino-ide that referenced this pull request Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants