This PR fixes an issue where `withLocation` wasn't saving the info context, which meant that tactics that use `at *` location syntax and do term elaboration would save infotrees but revert the metacontext, leading to Infoview messages like "Error updating: Error fetching goals: Rpc error: InternalError: unknown metavariable" if the tactic failed at some locations but succeeded at others. Closes #10898
9 lines
216 B
Text
9 lines
216 B
Text
/-!
|
|
# `rw .. at *` should save metacontext
|
|
-/
|
|
|
|
example (h : 1 + 2 = 3) : True := by
|
|
rewrite [Nat.add_comm _] at *
|
|
--^ $/lean/plainGoal
|
|
--^ $/lean/plainTermGoal
|
|
trivial
|