racket / racket/gui

Code parsing bug in the DrRacket editor

Open
#278 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

What version of Racket are you using?
8.5

What program did you run?
I was using the DrRacket editor with DrRacket set to the Simply Scheme language.

What should have happened?
Less text should have been highlighted by the code highlighting feature. In the three screenshots, I was moving the text insertion mark from the very right of the third line towards the left. Also, pointing to an error in the editor's parser, the Reindent All command did not indent the last line correctly. The interpreter ran the code without errors. As you can see, too much text was being highlighted in each screenshot:

incorrect_code_highlighting_1 incorrect_code_highlighting_2 incorrect_code_highlighting_3

The only problem is that I haven't yet found out how to reproduce the bug. I hope to see the bug again, and I will add it to this issue when I do.

Please include any other relevant details
DrRacket for Apple chips, macOS 12.4, Mac Studio M1 Max

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the issue in DrRacket 8.5 using the Simply Scheme language on macOS, then compare code highlighting with the Reindent All result. Done means a reliable reproduction or a confirmed explanation for the incorrect highlighting and indentation.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.