Zulip Chat Archive

Stream: lean4

Topic: Getting the type of an equality in the infoview


Eric Wieser (Apr 26 2023 at 10:54):

I have an equality in my goal that I'd like to know the type of. How can I get this out of the infoview? Hovering over the = gives:

image.png

Kyle Miller (Apr 26 2023 at 11:19):

It would be nice if the long docstring could make use of a scrollbar. The = type is cut off at the top of the infoview window here.

Eric Wieser (Apr 26 2023 at 11:39):

Maybe the docstring should appear above the type not below?

Eric Wieser (Apr 26 2023 at 11:39):

Docstrings are a nice-to-have in the infoview, the type is essential

Kevin Buzzard (Apr 26 2023 at 11:39):

I have whinged about this before. I suspect it happens far more to me than most people because I typically have my font on large because I can't find my reading glasses. This "box off the screen" issue never happened for me in lean 3

Eric Wieser (Apr 26 2023 at 11:40):

In the short-term I would consider removing the docstring for = because it's such a common object to want to know the type of

Sebastian Ullrich (Apr 26 2023 at 11:50):

Relevant PR, though not a complete solution for this specific issue: https://github.com/leanprover/vscode-lean4/pull/289

Sebastian Ullrich (Apr 26 2023 at 11:50):

It might make sense to limit docstrings to something like 3 lines by default and have a button for unfolding further

Max Nowak 🐉 (Apr 26 2023 at 12:17):

Sub-optimal, but you can do set_option pp.explicit true.


Last updated: Dec 20 2023 at 11:08 UTC