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:
- Open a random problem
- Try to solve it
- Fail, press 1, 2 or 3 to view the different test cases
- Press
q to close the console
- Immediately the console using
:Leet console
- 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 consolewithout running:Leet runa 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:
qto close the console:Leet consoleI 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 consoleshould 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.