Zulip Chat Archive

Stream: general

Topic: Web editor not working


Eric Wieser (May 24 2023 at 08:47):

As a heads up, the bump to Lean 3.51 has broken the web editor. I've found two of the problems:

With these applied, it now complains that it can't find library/init/default.lean; indeed, the filesystem only haslibrary/init/default.olean (you can test with Module.FS.lookupPath('/library/init/default.olean')

Eric Wieser (May 24 2023 at 08:47):

(Lean 3.51 also included a bump to the emscripten build tools, because the old one didn't run any more)

Eric Wieser (May 24 2023 at 08:51):

@Bryan Gin-ge Chen, do you have any suggestions of what to look at next?

Eric Wieser (May 24 2023 at 08:55):

This comment suggests that the web editor should not need the .leans, and indeed Lean was modified long ago

Eric Wieser (May 24 2023 at 09:27):

Ah nevermind, setting ERRNO_CODES to the right value makes everything work. So merging the above two PRs (and bumping mathlib again) is a solution.

Kevin Buzzard (May 24 2023 at 11:54):

Thanks for the debugging! There are still people who use this old interface.

Eric Wieser (May 24 2023 at 12:39):

Unfortunately this creates a bunch of release work for @Gabriel Ebner...

Bryan Gin-ge Chen (May 24 2023 at 16:31):

If Gabriel is busy, I can try to put together a new release of Lean later today.

Bryan Gin-ge Chen (May 24 2023 at 20:17):

Lean 3.51.1c, which includes this fix, has just been released. Thanks to Eric for tracking this down!

Eric Wieser (May 24 2023 at 20:19):

#19088 bumps mathlib

Eric Wieser (May 24 2023 at 20:20):

Thanks for making the release! We'll need to release lean-client-js too, though the PR there has a bit of bike-shedding wiggle room that's easier to explore once the mathlib build is out

Eric Wieser (May 24 2023 at 21:47):

Eric Wieser said:

#19088 bumps mathlib

I took the liberty of sending this to bors without review, since it's a one character change; I'm pretty sure I made it correctly, and there's nothing else on the queue for it to hold up right now

Eric Wieser (May 26 2023 at 07:46):

I can confirm that with https://github.com/leanprover/lean-client-js/pull/58 applied manually, the web editor works again; though that still need to be merged and released.

Eric Wieser (May 29 2023 at 13:49):

@Gabriel Ebner, am I right in saying you both the only person who knows how to release this, and the only person (other than Leo?) with sufficient github permissions to merge that PR?

Eric Wieser (May 31 2023 at 17:29):

There's some unrelated cleanup in CI, but (edit: no longer) the web editor seems to be working again!


Last updated: Dec 20 2023 at 11:08 UTC