Zulip Chat Archive

Stream: lean4

Topic: panic on doc-string


Kim Morrison (Aug 27 2025 at 22:41):

Here's a fun one:

import Mathlib

/-- -/

results in

PANIC at Lean.EnvExtension.modifyState Lean.Environment:1385:15: called on `async` extension, must set `asyncDecl` in that case
backtrace:

Does anyone want to investigate this?

Eric Wieser (Aug 27 2025 at 23:00):

Minimized:

import Lean

/-- -/

Eric Wieser (Aug 27 2025 at 23:01):

So possibly no longer in the right channel :)

Notification Bot (Aug 27 2025 at 23:13):

This topic was moved here from #mathlib4 > panic on doc-string by Kim Morrison.

Kim Morrison (Aug 27 2025 at 23:14):

It's fixed already on nightly.

Eric Wieser (Aug 27 2025 at 23:19):

Looks like a regression in 4.23.0, so perhaps worth a backport to the next rc?

Kim Morrison (Aug 27 2025 at 23:24):

I haven't actually found what fixed it. I can try bisecting sometime, but not sure I'll have the time.

Bhavik Mehta (Aug 28 2025 at 02:16):

One of my students noticed this about 48 hours ago, so I reported it to Sebastian and it was fixed very soon after: lean4#10131


Last updated: Dec 20 2025 at 21:32 UTC