Skip to content

REPL history is corrupt after soft reset. #699

Closed
@dlech

Description

@dlech

Describe the bug
What is the problem?

REPL history is corrupt after soft reset.

To reproduce
Steps to reproduce the behavior:

  1. Connect to hub and start REPL in Pybricks Code
  2. Type in some code and press enter
  3. Press the up arrow key to retrieve the previous line from this history
  4. Press the stop button to do a soft reset
  5. Start the REPL again
  6. Press the up arrow key in the terminal
  7. Get garbage printed in the terminal

Expected behavior
What did you expect to happen instead?

Soft reset should either preserve history or reset history length back to zero.

Screenshots
There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)topic: MicroPythonIssues related to the MicroPython programming language

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions