Movatterモバイル変換


[0]ホーム

URL:


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

fix: Sketch preprocessing errors were displayed on stdout instead of stderr#2806

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
cmaglie merged 3 commits intoarduino:masterfromcmaglie:compiler-stderr
Jan 9, 2025

Conversation

@cmaglie
Copy link
Member

Please check if the PR fulfills these requirements

Seehow to contribute

  • The PR has no duplicates (please search among thePull 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?

Fix the error output during sketch preprocessing wrongly redirected to stdout instead of stderr.

What is the current behavior?

$ arduino-cli compile -b arduino:avr:uno /home/megabug/Arduino/Blink/Blink.ino:1:2: error: #error eeee #error eeee  ^~~~~$ arduino-cli compile -b arduino:avr:uno 1> /dev/null Error during build: exit status 1

What is the new behavior?

$ arduino-cli compile -b arduino:avr:uno /home/megabug/Arduino/Blink/Blink.ino:1:2: error: #error eeee #error eeee  ^~~~~$ arduino-cli compile -b arduino:avr:uno 1> /dev/null /home/megabug/Arduino/Blink/Blink.ino:1:2: error: #error eeee #error eeee  ^~~~~Error during build: exit status 1

Does this PR introduce a breaking change, and istitled accordingly?

Other information

per1234 reacted with heart emoji
@cmagliecmaglie self-assigned thisJan 9, 2025
@cmagliecmaglie added type: imperfectionPerceived defect in any part of project topic: build-processRelated to the sketch build process labelsJan 9, 2025
@cmagliecmaglie changed the titlefix: Sketch preprocessing errors were output on stdout instead of stderrfix: Sketch preprocessing errors were displayed on stdout instead of stderrJan 9, 2025
@codecov
Copy link

codecovbot commentedJan 9, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.61%. Comparing base(d1b47cf) to head(5810d62).
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@##           master    #2806      +/-   ##==========================================- Coverage   67.63%   67.61%   -0.02%==========================================  Files         238      238                Lines       22392    22392              ==========================================- Hits        15144    15141       -3- Misses       6060     6062       +2- Partials     1188     1189       +1
FlagCoverage Δ
unit67.61% <100.00%> (-0.02%)⬇️

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.

Copy link
Contributor

@alessio-peruginialessio-perugini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, tested also locally on my machine

@cmagliecmaglie merged commit24799f3 intoarduino:masterJan 9, 2025
98 checks passed
@cmagliecmaglie deleted the compiler-stderr branchJanuary 9, 2025 15:13
@per1234per1234 added the topic: codeRelated to content of the project itself labelJan 15, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@MatteoPologrutoMatteoPologrutoAwaiting requested review from MatteoPologruto

1 more reviewer

@alessio-peruginialessio-peruginialessio-perugini approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@cmagliecmaglie

Labels

topic: build-processRelated to the sketch build processtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cmaglie@alessio-perugini@per1234

[8]ページ先頭

©2009-2025 Movatter.jp