Zulip Chat Archive

Stream: lean4

Topic: emacs lean4-mode hanging


David Renshaw (Jul 01 2022 at 02:43):

When I try to use lean4-mode on mathlib4, the *lean4-lsp::stderr* buffer sees this error message repeating forever:

PANIC at Lean.EnvExtensionInterfaceUnsafe.getState Lean.Environment:236:4: invalid environment extension has been accessed
PANIC at Lean.ScopedEnvExtension.getState Lean.ScopedEnvExtension:157:16: unreachable code has been reached
PANIC at Lean.EnvExtensionInterfaceUnsafe.getState Lean.Environment:236:4: invalid environment extension has been accessed
Error: index out of bounds

The goal view and jump-to-definition are still a little bit usable, but very slow. What am I doing wrong?

David Renshaw (Jul 01 2022 at 02:44):

I am using lean4-mode at this commit https://github.com/leanprover/lean4-mode/commit/c016c7aeee92564836355083664c49ed57024427
to work around this problem: https://github.com/leanprover/lean4-mode/issues/19 .

Wojciech Nawrocki (Jul 01 2022 at 03:22):

This is a Lean server bug that was fixed in leanprover/lean4#1259. Updating the nightly should help.

David Renshaw (Jul 01 2022 at 03:27):

ah, okay. I suppose I just need to wait for https://github.com/leanprover-community/mathlib4/pull/295 to land then


Last updated: Dec 20 2023 at 11:08 UTC