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
{{ message }}
Repository navigation
certain tactics don't show term info on error #3831
P-lowWe are not planning to work on this issuebugSomething isn't workingnew-user-papercutsIssue likely to confuse or otherwise negatively affect new users, even if only a little
Some tactics with (elaboration) errors cause the terms to not have term info (jump to definition jumps to the tactic definition, mousing over the term shows the tactic doc string).
Example
import Lean
example : True := by
apply Nat.add true
-- ^^^^^^^^^^^^ jump to def jumps to incorrect position and hover is wrong
A tactic with the same behavior is simp [Nat.add true]. On the other hand exact Nat.add true and refine Nat.add true display the correct behavior: mousing over Nat.add shows its docstring and jumping to its definition jumps to Nat.add (not to evalApply or similar).
Context
Probably this bug also causes the behavior seen in #3554
simp and apply are fixed in #5863 and #5862. I looked for other tactics that were using withoutErrToSorry or withoutRecover, but all I've noticed is match patterns need some work (reported in #5336).
If there are other tactics with this problem, please open new issues.
P-lowWe are not planning to work on this issuebugSomething isn't workingnew-user-papercutsIssue likely to confuse or otherwise negatively affect new users, even if only a little
Activity
fix: remove `withoutRecover` from `apply` elaboration
fix: let `simp` arguments elaborate without disabling error recovery
fix: let `simp` arguments elaborate without disabling error recovery
fix: remove `withoutRecover` from `apply` elaboration (#5862)
fix: let `simp` arguments elaborate with error recovery (#5863)
kmill commentedon Oct 29, 2024
simpandapplyare fixed in #5863 and #5862. I looked for other tactics that were using withoutErrToSorry or withoutRecover, but all I've noticed ismatchpatterns need some work (reported in #5336).If there are other tactics with this problem, please open new issues.
fpvandoorn commentedon Oct 29, 2024
This is great, thanks! This was really confusing for beginners.