leanprover-community / leanprover-community/repl

How to solve the input issue of the v4.8 repl server?

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

Nobody has claimed this yet.

Dominant language
Lean
Stars
228
Forks
69
Avg merge
15m
Merged PRs (30d)
4

Description

I encountered an issue related to Lean REPL 4.8. (I have some reasons that necessitate the use of this version.)When used as a server, Lean REPL 4.8 requires three '\n' characters to get a response, unlike Lean REPL 4.11, which only needs two. However, using three '\n' characters triggers a formatting issue that causes the server to shut down. Is it possible to modify the internal code of the REPL so that it recognizes two '\n' characters as sufficient for a response?

Image

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 input and shutdown behavior with the Lean REPL server in versions 4.8 and 4.11, using the newline counts described in the issue. Trace the server's input handling and formatting path to identify why the extra newline causes termination; done means two newlines receive a response without shutting down and the existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Domain
cli
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.