mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #1098] Infinite Recursion In Focus #796
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bn-bmagee on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1098
I am encountering an infinite recursion when trying to focus within a Form:
(this continues)
I made a simple case that reproduces the issue at least on my computer:
Pressing "Run" one time will work, but when it is pressed a second time it creates the recursive loop. I'm not sure if I'm doing anything "illegal" with this program, so if I am please let me know. If not, I suspect something is wrong here:
This looks to me like an infinite recursion waiting to happen that is avoided in many cases by the delegation function never being invoked.
@rivo commented on GitHub (Aug 27, 2025):
Unfortunately, I cannot reproduce the issue with your code. It behaves as expected, no infinite recursion.
Note that I'm about to push some major changes to
tviewbut I've tried your code with and without these changes. No issues.@bn-bmagee commented on GitHub (Aug 27, 2025):
Well, I suppose there's not much to be done if you can't reproduce the issue.
@rivo commented on GitHub (Aug 27, 2025):
Feel free to open a new issue if you find a way to reliably reproduce this.