vim-floaterm icon indicating copy to clipboard operation
vim-floaterm copied to clipboard

Error detected while processing function floaterm#run

Open Bekaboo opened this issue 1 year ago • 0 comments

Environment

  • Arch Linux
  • nvim v0.8.1

If you are using neovim, just run :checkhealth floaterm and post the content

below.

floaterm: health#floaterm#check
========================================================================
## common
  - INFO: Platform: linux
  - INFO: Nvim: NVIM v0.8.1
  - INFO: Plugin: 280b34a


## terminal
  - OK: Terminal emulator is available

## floating
  - OK: Floating window is available

Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):

Zero config, use packer to manage:

use {
  'voldikss/vim-floaterm',
  keys = '<C-\\>',
  cmd = {
    'FloatermNew',
    'FloatermToggle'
  }

Describe your question, feature request, or bug.

The following error occurs when trying to open a new terminal for ranger while currently focused on terminal for lazygit

Error detected while processing function floaterm#run[7]..floaterm#new[28]..function float
erm#run[7]..floaterm#new[19]..floaterm#wrapper#ranger#:
line    3:
E472: Command failed
Error detected while processing function floaterm#run:
line    7:
E171: Missing :endif

Steps to reproduce

Steps to reproduce the behavior:

  1. :FloatermNew --name=lazygit lazygit
  2. Leave terminal mode
  3. :FloatermNew --name=ranger ranger

Actual behaviour

Error occurs.

Expected behaviour

No error should occurs. It is worth noting that the error disappears if we open ranger first then create new terminal for lazygit.

Bekaboo avatar Dec 02 '22 20:12 Bekaboo