Zulip Chat Archive

Stream: lean4

Topic: can't print unit


Mario Carneiro (Apr 12 2021 at 05:19):

This crashes the lean server:

import Lean
open Lean Elab
#eval show TermElabM Unit from pure ()

Mario Carneiro (Apr 12 2021 at 05:27):

I think there is a bug in the server that causes it to crash when given an empty message

Mario Carneiro (Apr 12 2021 at 05:28):

since this also fails

#eval IO.print ""

Mario Carneiro (Apr 12 2021 at 05:35):

Not sure if this is related, but throwing also causes the server to crash

#eval show TermElabM String from throwError "foo"

Sebastian Ullrich (Apr 12 2021 at 09:44):

I can't reproduce any crashes. I can confirm that no messages are shown in the VS Code infoview if there is any empty/failing #eval, but not in Emacs.

Mario Carneiro (Apr 12 2021 at 10:18):

It's not a crash exactly, once #eval IO.print "" appears in the file the diagnostics stop getting updated

Mario Carneiro (Apr 12 2021 at 10:18):

in vscode

Mario Carneiro (Apr 12 2021 at 10:18):

there isn't any other indication that something has gone wrong, so it seems like the client is blocking forever on the request

Sebastian Ullrich (Apr 12 2021 at 10:18):

Yes, that I was able to reproduce. Seems to be a bug in the extension.


Last updated: Dec 20 2023 at 11:08 UTC