Zulip Chat Archive

Stream: new members

Topic: Lean Server stopping repeatedly


Anthony Peterson (May 20 2024 at 18:50):

I am running Lean 4 in VSCode on Windows, and I'm getting "Lean Server has stopped unexpectedly" every few minutes.

Are there some basic steps I can do to see if there's something on my end that is the problem? I updated Lean 4 a month ago. Restarting VScode seems to help briefly, but then the Lean server continues to crash repeatedly.

Mario Carneiro (May 20 2024 at 20:16):

There should be some more diagnostic information, e.g. in the sidebar, or in the output panel (if there is a popup with the error it should include a button to take you to the output panel). Also it's possible that the code you are working on is related to the issue, so getting a #mwe example is helpful for replication.

Note that Lean moves fast and "I updated Lean 4 a month ago" means you are on an old version, so I recommend updating lean and see if the problem persists. But I don't think there is any recent issue that sounds like this one, so there's a good chance the current version also has the same problem, whatever it is.

Anthony Peterson (May 21 2024 at 01:02):

I am a Coq user learning Lean, I’ve been trying to copy some theorems over into lean. I may have messed a few up.

I will post an example if I run into it again.


Last updated: May 02 2025 at 03:31 UTC