mhinz / neovim-remote

:ok_hand: Support for --remote and friends.
MIT License
1.73k stars 83 forks source link

`nvr some-file` does not open a file #150

Closed xPMo closed 4 years ago

xPMo commented 4 years ago

neovim is launched with $NVIM_LISTEN_ADDRESS=/tmp/nvimsocket, but nvr is unable to attach. Neither can it attach inside a :terminal.

This cast is nvr -s ~/.profile

E: I don't show it in the cast, but NVIM_LISTEN_ADDRESS is in the environment of the :terminal. However, :echo v:servername in nvim gives a different path. This path is something like /tmp/nvimPdLmCJ/0. This path is also given by nvr --serverlist. I suspect that nvim is no longer honoring NVIM_LISTEN_ADDRESS at all.


Versions:

xPMo commented 4 years ago

I found it. Nvim had crashed previously and left /tmp/nvimsocket behind, therefore would not use it.