2KAbhishek / termim.nvim

Neovim Terminal, Improved 🦾💻

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Neovim freezes on exit with `:q` after closing a terminal oppened with the plugin

IsWladi opened this issue · comments

Description of the bug

Hi, Thank you for your plugin, I really like it! :D
When using the integrated terminal feature in Neovim through the plugin termim.nvim, I encounter inconsistent behavior upon exiting Neovim. Specifically, after exiting the integrated terminal with :q and then I tried to exit Neovim with :q, Neovim freezes, requiring me to close my entire terminal session to fully exit.

Steps To Reproduce

  1. Open Neovim.
  2. Start a terminal with :Fterm or :Vterm (I have not tested whether this occurs with other commands of the plugin).
  3. Close the oppened terminal using the command :q.
  4. Try to exit Neovim with :q. Neovim is now unresponsive.

Additional Information

  • Using :q! to close the oppened terminal allows for normal exit from Neovim with :q. However, the freeze occurs when a terminal is opened with the plugin and closed with :q instead :q!.

Environment

  • Neovim Version: 0.9.5
  • termim.nvim Version: commit 87ad33c
  • Operating System: WSL2
  • Terminal Used: zsh

Hi @IsWladi thanks a lot for reporting this, I tried recreating the issue but I did not encounter the same issue.

This could be a WSL thing but I'm not sure yet, can you share a recording of how it looks like on your system

Thank you for getting back to me. The bug I reported is no longer occurring; I haven't made any changes, so it's unclear why it resolved itself, but everything seems to be working fine now. I will close the issue since the problem has ceased. Thank you for your assistance

I'm experiencing the same issue, also when the buffer is hidden with :hide while still running. Another issue would be how to show the buffer again after hiding it.

The way I debug is to start the node project in the terminal and then to attach DAP to it, now I have the split terminal visible in the main area. I don't want to end the running node app, but I do want to hide the buffer and show it again after detaching.

@jacoatvatfree I haven't looked into hiding and unhiding terminal buffers, but it looks like something useful.

Do you want to take it up and open up a PR? I'll be available to support

Thanks