kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
800 stars 17 forks source link

"E475: Invalid argument: Channel doesn't exist" when executing command ":RnvimrToggle" #130

Closed LorNtz closed 1 year ago

LorNtz commented 1 year ago

Command :RnvimrToggle gets an error like:

Error occurs when processing function rnvimr#toggle[12]..rnvimr#rpc#attach_file_once[2]..rnvimr#rpc#attach_file:
line 5:
E475: Invalid argument: Channel doesn't exist

:checkhealth rnvimr reads:

rnvimr: health#rnvimr#check
========================================================================
## OS
  - OK: Name: Mac

## Ranger
  - OK: Version: ranger 1.9.3

## Python
  - OK: Version: 3.8.9 (default, Apr 13 2022, 08:48:06) [Clang 13.1.6 (clang-1316.0.21.2.5)]

## Pynvim
  - OK: Version: 0.4.3

## Ueberzug (optional)
  - INFO: Ueberzug is not support for Mac

## RPC
  - OK: RPC echo: Neovim send "Give me five!" and receive "Give me five!"

:echo $NVIM_LISTEN_ADDRESS prints out something like:

/var/folders/tl/9g_vjj0j6kq9gr1v_phlkp6m0000gn/T/nvim.username/kUstZC/nvim.47272.0

Running ranger directly in terminal works well.

kevinhwang91 commented 1 year ago

can't reproduce it. call rnvimr#init() will work, maybe your nvim need to be restarted.