-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError when raising ServerError #45
Comments
This seems to be a problem of pexpect |
Should we lengthen the timeout? |
Increasing the timeout was my workaround so far, yes. |
The timeout's already parameterized https://github.com/lenianiva/PyPantograph/blob/309975657a1abef2b7a8a4e901da8874ed5ddd43/pantograph/server.py#L105 I don't want the timeout to be endless since if there's some bug or malformed tactic in Lean that hangs the system (nothing's preventing someone from writing one), then we must terminate the server process, but on the other hand not being able to run a IO-like monad with a timeout is a known limitation in Lean 4 |
There are many reasons why the timeout shouldn't be endless. Since it is already parametrized, I'll close this issue for now. Simply increasing the timeout works. Nonetheless, the underlying |
It seems that there is not always a
desc
key present if the result from Pantograph is an error.For example I managed to produce the following json
which raised a
KeyError
when trying to raise theServerError
intactic_invocations
because thedesc
key is missing.The text was updated successfully, but these errors were encountered: