Unable to view different cases when closing and reopening the Leet console #206

Open
opened 2025-10-07 13:15:44 -05:00 by davetron33 · 0 comments
davetron33 commented 2025-10-07 13:15:44 -05:00 (Migrated from github.com)

I'm running into a possible bug (maybe?) where I can't change test cases after viewing them once, closing the console and then reopening it using :Leet console without running :Leet run a second time. Because I'm a tad forgetful I will close the console, start looking at my solution to figure out what I need to fix, but will need to refer back to the console to get more information from the error output, only I can't change the case I was looking at--specifically in situations where 2 out of 3 cases fail, with 1 remaining that passes. Otherwise, the only time I am able to switch between cases is on the first submission of a problem solution.

Steps to reproduce:

  1. Open a random problem
  2. Try to solve it
  3. Fail, press 1, 2 or 3 to view the different test cases
  4. Press q to close the console
  5. Immediately the console using :Leet console
  6. Pressing any 1, 2 or 3 to view different cases does not update the TUI, only the last test case viewed remains viewable

I can get around this by simply closing the console on one of the failing test cases, but if I want to view the other, I have to revert my code back to the failing solution, run it again.

Expected behavior: Opening :Leet console should allow me, at any time to switch between test cases and the UI update to show each distinct case as it does the first time.

Versions:
nvim 0.11.4
Leetcode.nvim 0.3.1

If I can offer any more troubleshooting details or a screencap of this in action, happy to record one and upload it.

I'm running into a possible bug (maybe?) where I can't change test cases after viewing them once, closing the console and then reopening it using `:Leet console` without running `:Leet run` a second time. Because I'm a tad forgetful I will close the console, start looking at my solution to figure out what I need to fix, but will need to refer back to the console to get more information from the error output, only I can't change the case I was looking at--specifically in situations where 2 out of 3 cases fail, with 1 remaining that passes. Otherwise, the only time I am able to switch between cases is on the _first_ submission of a problem solution. Steps to reproduce: 1. Open a random problem 2. Try to solve it 3. Fail, press 1, 2 or 3 to view the different test cases 4. Press `q` to close the console 5. Immediately the console using `:Leet console` 6. Pressing any 1, 2 or 3 to view different cases does not update the TUI, only the last test case viewed remains viewable I can get around this by simply closing the console on one of the failing test cases, but if I want to view the other, I have to revert my code back to the failing solution, run it again. Expected behavior: Opening `:Leet console` should allow me, at any time to switch between test cases and the UI update to show each distinct case as it does the first time. Versions: nvim 0.11.4 Leetcode.nvim 0.3.1 If I can offer any more troubleshooting details or a screencap of this in action, happy to record one and upload it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
arduinohatesme/leetcode.nvim#206
No description provided.