You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using let, the source of a sorry is displayed in the infoview despite the pp.sorrySource option being false.
Context
The bug was noticed by @kmill on zulip, when i asked if the displayed [anonymous] for the source of a sorry inside a let should rather display a more readable value.
Steps to Reproduce
Paste the following code at live.lean-lang.org with Lean Nightly:
let n : Nat := sorry
-- hover here
trivial
Hover at the comment, and look at the infoview for the assigned value of n.
Expected behavior:
The value of n is displayed as n : Nat := sorry.
Actual behavior:
The value of n is displayed as n : Nat := sorry «[anonymous]:2:17»`.
The lean playground uses (as of writing) no module name, which causes the source of the sorry to display as [anonymous] rather than something more useful like foo or foo.n. This bug or lack of feature is not part of this issue.
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
When using
let
, the source of asorry
is displayed in the infoview despite thepp.sorrySource
option beingfalse
.Context
The bug was noticed by @kmill on zulip, when i asked if the displayed
[anonymous]
for the source of a sorry inside alet
should rather display a more readable value.Steps to Reproduce
Lean Nightly
:n
.Expected behavior:
The value of
n
is displayed asn : Nat := sorry
.Actual behavior:
The value of
n
is displayed asn : Nat := sorry
«[anonymous]:2:17»`.Versions
Additional Information
The lean playground uses (as of writing) no module name, which causes the source of the sorry to display as
[anonymous]
rather than something more useful likefoo
orfoo.n
. This bug or lack of feature is not part of this issue.Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: