Zulip Chat Archive
Stream: lean4
Topic: 'wrong argument name' error msg should be clickable
Alok Singh (May 24 2025 at 22:34):
Consider:
def f (x : Int) := x
-- `invalid argument name 'y' for function 'f'`. `f` should be hoverable/clickable in the infoview
It feels like the definition of f should be clickable, and that would help debug the error. Also, maybe all f's valid argument names should be listed to make it easier to debug?
Eric Wieser (May 24 2025 at 22:45):
This looks like an easy PR, by using {.ofConstName f} in the error message interpolation
Alok Singh (May 24 2025 at 22:45):
what about displaying f's arguments?
Eric Wieser (May 24 2025 at 22:46):
That sounds more bike-sheddy, and probably not one that could be merged as quickly
Alok Singh (May 24 2025 at 22:46):
i know, it's for follow up exploration
Last updated: Dec 20 2025 at 21:32 UTC