Wrong InfoView state in term mode on whitespace
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 9.2k
- Forks
- 990
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 175
Description
Description
Given
example : True :=
let a := 1
let b := 2
-- <cursor>
sorry
InfoView reflects a but not b:
This is annoying because it requires constantly moving the cursor down from where you're typing to see the current state. This is only a problem in term mode — tactic mode works fine.
Context
Extracted from #new members > Term mode feels like an afterthought @ 💬.
Steps to Reproduce
- Write above code
- Place cursor where it says "cursor"
Expected behavior: Both a and b appear in InfoView
Actual behavior: Only a appears in InfoView
Versions
lean4:v4.22.0-rc3
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Lean v4.22.0-rc3 using the provided term-mode example, placing the cursor on the marked whitespace, and compare it with tactic mode. Trace the InfoView update path for term mode; done means the InfoView shows both a and b at the cursor position without moving the cursor.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100