Bug 23265 – spell checker could provide better identification of spelling mistakes

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-07-21T14:47:15Z
Last change time
2024-12-13T19:23:56Z
Keywords
diagnostic
Assigned to
No Owner
Creator
Steven Schveighoffer
Moved to GitHub: dmd#20133 →

Comments

Comment #0 by schveiguy — 2022-07-21T14:47:15Z
This is a small quality-of-life issue. But sometimes symbols are quite long. The spell checker suggests the correct one, but human brain doesn't register the difference. Humans can read words the same most of the time as long as the frist and last lettres match, with the correct letters smoehwere in the middle for example, I had the symbol intialCustomFields, which really should be initialCustomFields. Try to see the difference between those quickly. What I'd like to see is either a colorized diff showing the deleted/added/swapped letters, or some visual indicator like: undefined identifier `intialCustomFields`, did you mean variable `initialCustomFields`? diff: `in>i<tialCustomFields` Or something to that effect. Or maybe a second line pointing at the difference spots with carets.
Comment #1 by robert.schadek — 2024-12-13T19:23:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20133 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB