voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.47k stars 78 forks source link

Git commits initiated within a floaterm in Neovim 0.6 hang indefinitely #328

Open awray3 opened 2 years ago

awray3 commented 2 years ago

Neovim 0.6 hangs when trying to do a git commit from a floaterm. See attached gif. The commit message hangs there indefinitely and can only be stopped by closing the terminal itself; no amount of :q , Ctrl+C or ZZ do anything; no commands can be issued to neovim. It happens with a (nearly) default init.vim and no other plugins installed.

git_commit_bug

Steps to reproduce

  1. Create a test file test_file.txt with the text Hello, World.
  2. Initialize a git repo git init
  3. Add the test file git add test_file.txt
  4. Run neovim with a bare init.lua:
    nvim --clean -S ./plug.vim -S ./init.lua test_file.txt
  5. Open a floaterm, type git commit, write a commit, :wq.

Environment

## common
  - INFO: Platform: macos
  - INFO: Nvim: NVIM v0.6.0
  - INFO: Plugin: 399cb86

## terminal
  - OK: Terminal emulator is available

## floating
  - OK: Floating window is available

plug.vim is obtained from junegunn/vim-plug.

-- init.lua
vim.cmd([[
  let plugpath = expand('<sfile>:p:h'). '/autoload/plug.vim'
]])

local Plug = vim.fn["plug#"]

vim.call("plug#begin", "~/config_debug_dir/debug_plugs")

Plug("voldikss/vim-floaterm")

vim.call("plug#end")
voldikss commented 2 years ago

Strange... but I can not reproduce it :crying_cat_face:

dky commented 2 years ago

I suspect I get this too, however it's when I open a file to edit in a floatterm. I'm going to keep this on my watch list to see if anyone else experiences it. I'll be downgrading to neovim 0.5.1 again to see if I this goes away. I'm on MacOS Big Sur and installed nvim 0.6.0 with brew.