Skip to content

Infoview shows incorrect tactic state on empty line #14394

Closed

Description

@TwoFX

Prerequisites

Description

In this code

example {a : Nat} (ha : a = 3) : a ≤ 4 := (by
  rw [ha]
  
  sorry)

If you place the cursor on the empty line, then you get the tactic state

1 goal
a : Nat
ha : a = 3
⊢ a ≤ 4

But this is wrong. It should be

1 goal
a : Nat
ha : a = 3
⊢ 3 ≤ 4

which is what you get if you place the cursor at the end of the rw [ha] line.

Steps to Reproduce

  1. Paste the code above into live.lean-lang.org set to a recent nightly
  2. Place the cursor on the empty line

Expected behavior: Infoview shows correct state

Actual behavior: Infoview shows outdated state

Versions

nightly-2026-07-14.

This issue is not present in Lean 4.32.0.

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Activity

  1. added
    bug
    on Jul 15, 2026
  2. added 2 commits that reference this issue on Jul 15, 2026
    0c937a2
    3895947
  3. added a commit that references this issue on Jul 29, 2026
    0083466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions