leanprover-community / leanprover-community/repl

Repl doesn't return any output?

Open
#16 7 comments 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 am trying to use the repl, I have no idea how is it supposed to work but I receive no output

> lake exe repl
{ "cmd" : "def f := 2" }
{ "cmd" : "example : f = 2 := rfl", "env" : 1 }
{ "cmd" : "#eval 1+1"} 
{ "cmd" : "IO.println \"hey\""} 

after ctr+c
I get

uncaught exception: {"message": "offset 34: expected end of input"}

am I doing something wrong?

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

Run lake exe repl with the four commands from the report and observe whether input is parsed or buffered. Start at the REPL entry point and trace the reported offset 34: expected end of input error after Ctrl+C; the work is done when the command handling and output behavior are clear and the reported interaction no longer ends with that exception.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.