mhinz / neovim-remote

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

Fail when path already exists #159

Closed jD91mZM2 closed 2 years ago

jD91mZM2 commented 3 years ago

Note: Depends on #158.

Sorry for depending on another PR, it's just that I have a hard time building this project if I'm not using poetry.


I noticed that on my system, when I missed to shut down neovim before shutting down my computer, the socket file remained and I got very suspicious behavior starting up a new instance of neovim (failed to attach to the brand new process). I tracked it down a quirk in neovim: If $NVIM_LISTEN_ADDRESS already exists, it ignores it. So I made this PR in order to detect these cases and give a friendly error

mhinz commented 2 years ago

https://github.com/mhinz/neovim-remote/pull/158 was not merged. Closing.