Zulip Chat Archive

Stream: lean4

Topic: degraded hover experience on #check


Kevin Buzzard (Jul 05 2024 at 19:18):

This is on 4.10.0-rc1.

theorem bar (P Q R : Nat) : P + Q + R = R + Q + P := by omega

#check bar -- can't work out associativity of `+` with hover in the infoview
#print bar -- no problem here

Inspecting the theorem statement by hovering in the infoview, I would expect to be able to see how the statement is being parsed, e.g. I would expect that hovering over both the +s in P + Q + R should tell me where the brackets are. This works with #print but it's not working for me with #check (either in VS Code or with the web editor). Are other people experiencing this? Is this expected?

Kyle Miller (Jul 05 2024 at 19:28):

Wow, that's not good, thanks for the report.

Kyle Miller (Jul 05 2024 at 21:18):

This should be fixed in lean4#4665

Kyle Miller (Jul 05 2024 at 21:24):

This turned out to have been around since 4.8.0, when a refactor accidentally made #check pretty print using the pp.tagAppFns option. This option is working as intended, but having it active during #check is not intended.


Last updated: May 02 2025 at 03:31 UTC