diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-08 07:07:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-08 07:07:19 -0700 |
commit | 08153ddd1c149c867948f4681846531d53ba7759 (patch) | |
tree | 5bfb384613247cbffb809dfcea14cd62448d9990 /runtime/lua/vim/shared.lua | |
parent | 003b8a251dc1184e36c222f675bf79a50a40ab3a (diff) | |
download | rneovim-08153ddd1c149c867948f4681846531d53ba7759.tar.gz rneovim-08153ddd1c149c867948f4681846531d53ba7759.tar.bz2 rneovim-08153ddd1c149c867948f4681846531d53ba7759.zip |
fix(startup): ignore broken $XDG_RUNTIME_DIR #30285
Problem:
$XDG_RUNTIME_DIR may be broken on WSL, which prevents starting (and even
building) Nvim. #30282
Solution:
- When startup fails, mention the servername in the error message.
- If an autogenerated server address fails, log an error and continue
with an empty `v:servername`. It's only fatal if a user provides a bad
`--listen` or `$NVIM_LISTEN_ADDRESS` address.
Before:
$ nvim --headless --listen ./hello.sock
nvim: Failed to --listen: "address already in use"
$ NVIM_LISTEN_ADDRESS='./hello.sock' ./build/bin/nvim --headless
nvim: Failed to --listen: "address already in use"
After:
$ nvim --headless --listen ./hello.sock
nvim: Failed to --listen: address already in use: "./hello.sock"
$ NVIM_LISTEN_ADDRESS='./hello.sock' ./build/bin/nvim --headless
nvim: Failed $NVIM_LISTEN_ADDRESS: address already in use: "./hello.sock"
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions