chipsenkbeil / chipsenkbeil/distant.nvim

[Bug] `clangd` return errors

Open
#91 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
1.4k
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When trying to edit a file stored in a WSL instance, `clangd-16` LSP server crashes reporting each time a different message for each buffer edit (reload) command:

```
[distant] [ERROR 03:34:50] ...packer\\start\\distant.nvim/lua\\distant\\cli\\client\\lsp.lua:151: Client terminated: "NO_RESULT_CALLBACK_FOUND"
[distant] [ERROR 03:34:52] ...packer\\start\\distant.nvim/lua\\distant\\cli\\client\\lsp.lua:151: Client terminated: "READ_ERROR"
[distant] [ERROR 03:34:54] ...packer\\start\\distant.nvim/lua\\distant\\cli\\client\\lsp.lua:151: Client terminated: "NOTIFICATION_HANDLER_ERROR"
[distant] [ERROR 03:34:56] ...packer\\start\\distant.nvim/lua\\distant\\cli\\client\\lsp.lua:151: Client terminated: "SERVER_REQUEST_HANDLER_ERROR"
[distant] [ERROR 03:34:57] ...packer\\start\\distant.nvim/lua\\distant\\cli\\client\\lsp.lua:151: Client terminated: "SERVER_RESULT_CALLBACK_ERROR"
[distant] [ERROR 03:34:59] ...packer\\start\\distant.nvim/lua\\distant\\cli\\client\\lsp.lua:151: Client terminated: "ON_INIT_CALLBACK_ERROR"
```

Neovim version:

```log
NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilato da runneradmin@fv-az171-224
```

`distant.nvim` setup:

```lua
{
-- Applies Chip's personal settings to every machine you connect to
--
-- 1. Ensures that distant servers terminate with no connections
-- 2. Provides navigation bindings for remote directories
-- 3. Provides keybinding to jump into a remote file's parent directory
['*'] = require('distant.settings').chip_default(),
['133.25.214.41'] = {
distant = {
bin = '/root/.cargo/bin/distant',
},
lsp = {
['Project Distant'] = {
cmd = { 'clangd-16' },
filetypes = { 'c', 'cpp' },
root_dir = '/home/root/projects/src',
on_attach = function()
vim.keymap.set('n', 'gD', 'lua vim.lsp.buf.declaration()')
vim.keymap.set('n', 'gd', 'lua vim.lsp.buf.definition()')
vim.keymap.set('n', 'gh', 'lua vim.lsp.buf.hover()')
vim.keymap.set('n', 'gi', 'lua vim.lsp.buf.implementation()')
vim.keymap.set('n', 'gr', 'lua vim.lsp.buf.references()')
end,
},
},
},
}
```

`distant.nvim` branch: v0.2

`distant.exe` path: `C:\Work\Temp\Neovim\data\nvim-data\distant.nvim\bin\distant.exe`

`distant.exe` version: `distant 0.20.0-alpha.4`

Os: Windows 10 Pro

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.