Commit 14acf8e
committed
fix: log tactic analysis messages on correct range (leanprover-community#28919)
The tactic analysis framework attempts to log messages on a synthetic concatenation of tactics (`` `(tactic|$tacticSeq;*)``). However, this inserts position info from the current ref in the tactic sequence nodes, and so messages are logged on the current ref (in this case, the whole command).
This PR works around this by setting the ref to the input array of tactics via `mkNullNode`.
(Note that VS code cannot log on disjoint ranges, so Lean's `log*` family of functions only logs on the first line of multiline ranges. Hence, logging on the full tactic sequence range results in a squiggly line under only the first line of the tactic. This is unrelated to the current fix.)1 parent 93fccc9 commit 14acf8e
1 file changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
| |||
0 commit comments