Skip to content

Set LEAN_MAIN_USE_THREAD=0 env before main executes#59

Merged
paulcadman merged 2 commits into
mainfrom
set-lean-main-use-thread-0
Jun 2, 2026
Merged

Set LEAN_MAIN_USE_THREAD=0 env before main executes#59
paulcadman merged 2 commits into
mainfrom
set-lean-main-use-thread-0

Conversation

@paulcadman

@paulcadman paulcadman commented Apr 25, 2026

Copy link
Copy Markdown
Collaborator

Lean 4.30.0+ runs main on a new thread, we must disable this because UI must run on the OS main thread.

leanprover/lean4#12971

Lean 4.30.0+ runs `main` on a new thread, we must disable this because
UI must run on the OS main thread.
@paulcadman paulcadman merged commit d83e079 into main Jun 2, 2026
2 checks passed
@paulcadman paulcadman deleted the set-lean-main-use-thread-0 branch June 2, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant