Internal error: starting index is out of range
Open
Nobody has claimed this yet.
bug
- Dominant language
- Racket
- Stars
- 516
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
open-input-text-editor: starting index is out of range
starting index: 19
valid range: [0, 18]
editor: (object:add-on-paint-logging ...)
context...:
/Users/sorawee/projects/racket/extra-pkgs/gui/gui-lib/mred/private/snipfile.rkt:24:4: open-input-text-editor
/Users/sorawee/projects/racket/extra-pkgs/gui/gui-lib/framework/private/color.rkt:592:4: colorer-driver method in text-mixin
/Users/sorawee/projects/racket/extra-pkgs/gui/gui-lib/framework/private/color.rkt:615:4: colorer-callback method in text-mixin
/Users/sorawee/projects/racket/extra-pkgs/gui/gui-lib/mred/private/wx/common/queue.rkt:435:6
/Users/sorawee/projects/racket/extra-pkgs/gui/gui-lib/mred/private/wx/common/queue.rkt:433:3
Steps to reproduce:
- Open a new tab.
- Paste
(('x (#<))). - Undo.
The internal error should occur.
EDITED: sorry, should have put this in racket/gui. Feel free to move if anyone wants to.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error in DrRacket with a new tab, the pasted text (('x (#<))), and Undo. Read gui-lib/mred/private/snipfile.rkt around open-input-text-editor and gui-lib/framework/private/color.rkt around the colorer-driver and colorer-callback; done means the reproduction no longer raises the internal error.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100