Closed wellecks closed 1 year ago
I cannot replicate this, if I just run lake env lean --run REPL/Main.lean
I can pass it your command (with " }
at the end) and get back {"sorries": [], "messages": [], "env": 0}
.
I'm also unable to replicate the issue. Both via running lake env lean --run REPL/Main.lean
and using the pySagredo wrapper. I added a test case to pySagredo that checks whether the repl accepts long inputs, and it passes on my machine.
Ok it must be something with my setup then, I'll close the issue. Thank you!
Context: when using pySagredo I'm running into timeout errors when the string of submitted lean code is long.
On the command line, it seems that the repl only accepts inputs up to 1024 characters. For example, when I run
lake env lean --run REPL/Main.lean
, I am unable to type any more characters on the command line after the lasta
in the example below:When we use the python interface in pySagredo with the string above, we get a timeout:
However, the timeout doesn't occur when the string has a smaller number of
a
's (e.g.--aaaaaaa
). In practice, this means we get a timeout when we send a long proof. Is there a known issue with long strings being sent to the repl?cc : @zhangir-azerbayev