racket / racket/drracket

`Run` related timing-specific rendering bug w/definition drop-down

Open
#593 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

This one is an edge case. In at least BSL and ISL+, if I have a file with a goodly number of definitions on a single line, then clicking the (define ...) drop-down within an epsilon of hitting the Run button causes the menu to fail to display, and hangs evaluation.

I discovered this when playing around with a students' file with more than one definition on a given line and investigating the consequences of the (clever!) approach to graphically indicating subsequent definitions on one line.

It may not be a consequence of the multiple definitions, but that's the only way I can reliably trigger it. I also don't know that this strictly limited to the teaching languages, but that's the only condition in which I've been able to trigger it.

I attach a screencap, because it's otherwise difficult to explain the process. I use ⌘+R to trigger the run, so I can get my mouse to the drop-down in time.

https://user-images.githubusercontent.com/1329370/197363369-861168af-1679-4c4f-9bfe-abe8b3a545eb.mov

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the timing described in the issue: use BSL or ISL+ with multiple definitions on one line, then trigger Run while opening a definition drop-down. The fix is complete when the menu reliably displays and evaluation does not hang in this scenario; the payload names no files or tests to inspect.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.