racket / racket/drracket

Issue with plt:framework-pref:drracket:most-recent-lang-line

Open
#581 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

Steps to reproduce:

  1. Set plt:framework-pref:drracket:most-recent-lang-line to #lang r6rs and close DrRacket. E.g. by creating a new buffer, change the lang line, save it to a file, and close DrRacket.
  2. Open DrRacket. #lang r6rs should be loaded by default, with an error
    r6rs: must contain a `library' form (for a library) or start with `import' (for a top-level program) in: (#%module-begin)
    
  3. Open any other file that is not a #lang r6rs. The error about
    r6rs: must contain a `library' form (for a library) or start with `import' (for a top-level program) in: (#%module-begin)
    
    persists, and incorrectly highlighted in this file.

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

Reproduce the issue by setting plt:framework-pref:drracket:most-recent-lang-line to #lang r6rs, restarting DrRacket, and opening a non-R6RS file. Inspect how this preference is applied when files are opened; done means the R6RS error no longer persists or appears incorrectly in other files.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.