Skip to content

BUG: DrRacket REPL corrupted (#%top-interaction: bad syntax) after error in definitions area #789

Description

@sohang3112

If a #lang rhombus file fails to compile (e.g., due to an unbound identifier), the DrRacket REPL enters a broken state. Any subsequent expression typed into the REPL fails with #%top-interaction: bad syntax.

Note: This only happens after an error in the definitions area, not from errors raised within the REPL itself.

Current Workaround: Running a file that compiles successfully resets and fixes the DrRacket REPL.

Steps to Reproduce

Make a file with the following code (deliberately having error) and run it in DrRacket:

#lang rhombus
 x

As expected REPL shows error when file is run. But after that, trying to run any valid code in DrRacket REPL also fails with syntax error:

x: unbound identifier in: x            
$ def a = 0      
. #%top-interaction: bad syntax in: (#%top-interaction . def)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions