Open hargoniX opened 1 week ago
Here is a more minimal example that I ran into:
def oops (i : ∀ α, List α) : List β := i β
When hovering over the α
, this error appears:
α : failed to pretty print expression (use 'set_option pp.rawOnError true' for raw representation)
when the cursor is on α
, this error appears with red letters in the infoview:
Error updating: Error fetching goals: Rpc error: InternalError: unknown metavariable '?_uniq.160'. Try again.
More data points:
Doens’t work
def foo1 (i : ∀ α, List α) : List β := i β
def foo2 (i : (α : _) → List α) : List β := i β
works
def foo3 (i : (α : Type _) → List α) : List β := i β
def foo4 (i : (α : Type 0) → List α) : List β := i β
Possible fix at https://github.com/leanprover/lean4/pull/4137
Prerequisites
Description
In the following code:
Hovering
hit
at{hit}
yieldsIn the infoview. Furthermore the hover itself prints:
However hovering on
hit
in the theorem statementhit = hit
does reveal a proper hover.Steps to Reproduce
{hit}
Expected behavior: The hover should be the same at the binder and the equation
Actual behavior: A broken hover and seemingly something wrong with the LSP as well.
Versions
4.8.0-rc1
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.