Zulip Chat Archive

Stream: nightly-testing

Topic: doc-gen4 problems on v4.22.0-rc1


Kim Morrison (Jun 30 2025 at 12:16):

@Henrik Böving, might you be able to look at https://github.com/leanprover/doc-gen4/pull/302?

Henrik Böving (Jun 30 2025 at 12:27):

I fixed all but one error which I've asked Kyle about

Kim Morrison (Jun 30 2025 at 12:44):

I think the remaining error is actually a question for @Marc Huisinga, as the change occurs in lean#8511.

Kim Morrison (Jun 30 2025 at 12:44):

Ah, but @Marc Huisinga is on a tropical island.

Henrik Böving (Jun 30 2025 at 12:44):

Well he is not going to answer for the forseeable future :D

Kim Morrison (Jun 30 2025 at 12:45):

My guess is that we just call

  let (sigStx, infos)  withTheReader Core.Context ({ · with currNamespace := n.getPrefix }) <|
    PrettyPrinter.delabCore t (delab := PrettyPrinter.Delaborator.delabConstWithSignature)

at least, it type checks. :-)

Kim Morrison (Jun 30 2025 at 12:46):

Are our tests in CI robust enough that this is worth a try?

Henrik Böving (Jun 30 2025 at 12:46):

I wouldn't expect something to fail if this prints out whatever, we probably have to visually inspect the doc-gen output to see if it did the right thing :tm:

Kim Morrison (Jun 30 2025 at 12:47):

Is there any doc-gen output that we can inspect merely by running CI?

Henrik Böving (Jun 30 2025 at 12:47):

I usually just run lake build DocGen4:docs and look at it locally

Kim Morrison (Jun 30 2025 at 12:48):

Well that was not what I was hoping to see:

info: stderr:
ld64.lld: error: undefined symbol: lean_inc_ref_cold

Henrik Böving (Jun 30 2025 at 12:48):

Did you lake clean in between?

Henrik Böving (Jun 30 2025 at 12:48):

that fixed this for me

Kim Morrison (Jun 30 2025 at 12:49):

Yeah, my voodoo fix is not right, lots of

PANIC at Lean.PrettyPrinter.Delaborator.delabConst Lean.PrettyPrinter.Delaborator.Builtins:95:35: unreachable code has been reached
backtrace:

Henrik Böving (Jun 30 2025 at 12:49):

:D

Henrik Böving (Jun 30 2025 at 12:49):

so we wait for our local pretty printing magician

Kim Morrison (Jun 30 2025 at 13:35):

@Henrik Böving, still there? I have another candidate fix (backport the code from before #8511!). doc-gen4 builds, how do I view anything after lake build DocGen4:docs?

Henrik Böving (Jun 30 2025 at 13:35):

you go to .lake/build/doc and run something like python3 -m http.server

Kim Morrison (Jun 30 2025 at 13:37):

Okay, superficially seems okay, at least, there are signatures. :-)

Henrik Böving (Jun 30 2025 at 13:38):

Great, I would personally still prefer for Kyle to sign off on that stuff or are we under pressure here?

Kim Morrison (Jun 30 2025 at 13:39):

No, it's fine to wait until tomorrow, as I'm going to fall asleep before I could get the Mathlib bump PR merged anyway.

Kim Morrison (Jun 30 2025 at 13:40):

@Kyle Miller, when you're coming to this, you'll see my "let's restore the pre lean#8511 code" in https://github.com/leanprover/doc-gen4/pull/302. Feel free to remove that commit and replace it with whatever is sensible. :-)

Kyle Miller (Jun 30 2025 at 14:53):

@Kim Morrison @Henrik Böving Updated the PR. I tested it locally, but it probably would be good to spot check the output once more.

Henrik Böving (Jun 30 2025 at 15:04):

will do, thanks!

Henrik Böving (Jun 30 2025 at 15:25):

Yeah it looks fine to me :thumbs_up:

Kim Morrison (Jun 30 2025 at 22:48):

:merge:'d


Last updated: Dec 20 2025 at 21:32 UTC