leanprover-community / leanprover-community/repl
Repl doesn't return any output?
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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