Zulip Chat Archive
Stream: lean4
Topic: rfc: sorry should show decl name
Alok Singh (Sep 23 2025 at 15:28):
def a : Nat := sorry
-- declaration uses 'sorry'
could this error message say something like declaration 'a' uses 'sorry'. the sorry is goto-def able, but just naming the declaration is handy too.
Kenny Lau (Sep 23 2025 at 15:31):
is this coming from looking at "all messages"? I don't quite understand this suggestion because the warning message is exactly coming from where the declaration is.
Kenny Lau (Sep 23 2025 at 15:32):
it's just like if you make an error like:
def a : Nat := 3 ++ 3
/-
failed to synthesize
HAppend Nat Nat Nat
-/
the error messasge and the red underline tell you what is wrong
Alok Singh (Sep 23 2025 at 15:33):
My markdown formatting was off, it should be declaration $DECL_NAME uses 'sorry' on top of the line/col info.
Kenny Lau (Sep 23 2025 at 15:36):
I understand what you mean by a, I meant that I don't understand why this is necessary.
Eric Wieser (Sep 23 2025 at 19:39):
(deleted)
Kyle Miller (Sep 28 2025 at 15:08):
Sure, seems reasonable. I thought about adding this while making sorry go-to-def-able, but didn't to keep the PR's diff small. If anyone implements this, please use backticks instead of ', both for the constant and the sorry.
Last updated: Dec 20 2025 at 21:32 UTC