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

:checkhealth rnvimr - RPC timeout on NixOS #110

Closed mrcjkb closed 2 years ago

mrcjkb commented 2 years ago

Ranger

Python

Pynvim

Ueberzug (optional)

RPC

**Describe the bug**

See the above health check output.
I have all dependencies installed, and the `NVIM_LISTEN_ADDRESS` is `/run/user/1000/nvimUT3QB8/0`.

**Additional context**
Some potentially related behaviour I noticed:
1. Start rnvimer from neovim, or start a terminal session in neovim and run `ranger --confdir <path-to-rnvimr-plugin>/ranger/`
  --> e.g. `ranger --confdir $HOME/.local/share/nvim/site/pack/packer/start/rnvimr/ranger/`
2. Navigate to a file and try to open it
--> Results in the following output:

Error while loading plugin 'client' Error while loading plugin 'hacks' Error while loading plugin 'host' Error while loading plugin 'rcommand' Error while loading plugin 'rutil' Error while loading plugin 'service' Error while loading plugin 'urc' The error 'FM' object has no attribute 'urc' was caused by evaluating the following code: fm.urc.redirect_and_load(); fm.urc = None

mrcjkb commented 2 years ago

The ranger log file contains the following lines:

22:05:47 ERRO Error while loading plugin 'client'
22:05:47 ERRO No module named 'pynvim'

I now know what is going on: The nixOS ranger package does not include the python modules required by rnvimr. I will try a custom nix ranger build, and if it works with that one, I will open a pull request in the nixpkgs rrepo.

mrcjkb commented 2 years ago

Until my PR in nixpkgs is merged, my NUR package can be used: https://github.com/MrcJkb/nur-packages/tree/master/pkgs/ranger-fm