arduino / arduino/Arduino

Inconsistent error highlight behavior on first line of sketch/tab

Open
#5,418 4 comments 0 reactions 0 assignees View on GitHub
Component: IDE user interface Type: Bug Upstream notified
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

Using Arduino IDE 1.6.13 Hourly Build 2016/09/23 03:33 with Windows 7 64 bit
- Create a sketch with an error on line 1.
- **Sketch > Compile/Verify** - line 1 is highlighted.
- Move the cursor to line 1.
- Press Enter.
- The error line moves to line 2 but the error highlight remains at line 1.
- **Sketch > Compile/Verify** - line 2 is highlighted.
- Move the cursor to line 1.
- Press Enter.
- The error line moves to line 2 and the error highlight also moves to line 2, the correct and normal behavior.

This happens on any tab.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Arduino IDE 1.x using the described sketch, then inspect the editor's error highlighting when Enter moves an error from line 1 to line 2. Done means the highlight follows the moved error on the first insertion, consistently across tabs and subsequent compilations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.