Skip to content

Please only show platform.txt warnings relevant to the selected board #4104

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

Closed
PaulStoffregen opened this issue Nov 7, 2015 · 1 comment
Closed
Assignees
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)
Milestone

Comments

@PaulStoffregen
Copy link
Contributor

Extraneous warning messages are tremendously distracting for novices, who struggle to understand why their code doesn't compile, or worse yet, their code does compile but doesn't work as intended.

For example, consider a novice using an AVR board who uses digitalWrite() but neglects pinMode(). The pin will change voltage, because digitalWrite() controls the pullup resistor when the pin is in input mode, but a LED will turn on only very dim. This situation is hard enough.... but the IDE shows this in its console window:

Warning: platform.txt from core 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.

Sketch uses 716 bytes (2%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.

This warning is irrelevant info about the SAMD platform. The problem is novice Arduino users do not know this message is irrelevant. All they know is their code uploaded and sort-of works, but the LED doesn't turn on properly, and the Arduino IDE is trying to warn them about something they can't understand.

Any reasonably intelligent but inexperienced person would waste time trying to figure out what this message means. Afterall, it's printed in red... so it must be important, right? Ultimately, it's a huge distraction from actually discovering the need to use pinMode(), or whatever is actually wrong. Arduino should try as much as possible to help novices, and avoid distracting them.

@ffissore
Copy link
Contributor

This issue was moved to arduino/arduino-builder#57

@ffissore ffissore modified the milestone: Release 1.6.7 Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

3 participants