arduino / arduino/Arduino

Better error message if sketch too big

Open
#2,770 2 comments 0 reactions 0 assignees View on GitHub
Component: IDE user interface feature request
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

Used Arduino Leonardo Board and IDE 1.6.1 on Windows 8.1

```
Sketch uses 31,416 bytes (109%) of program storage space. Maximum is 28,672 bytes.
Global variables use 1,335 bytes (52%) of dynamic memory, leaving 1,225 bytes for local variables. Maximum is 2,560 bytes.
processing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
at processing.app.debug.Compiler.size(Compiler.java:325)
at processing.app.debug.Compiler.build(Compiler.java:117)
at processing.app.Sketch.build(Sketch.java:1169)
at processing.app.Sketch.build(Sketch.java:1142)
at processing.app.Editor$BuildHandler.run(Editor.java:1977)
at java.lang.Thread.run(Thread.java:745)
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
```

Contributor guide

Open the contributing guide

Research direction

Start at processing.app.debug.Compiler.size(Compiler.java:325) and follow the build path shown through Compiler.build and Sketch.build. Reproduce the oversized-sketch output from the issue, then determine what information the error message should communicate more clearly. Done means the oversized sketch reports a better message without losing the existing size details.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.