Skip to content

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

@davetron33

Description

@davetron33

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions