-
-
Notifications
You must be signed in to change notification settings - Fork 122
LspInstall clangd fails: Failed to promote the temporary installation directory #434
Comments
Hello @schrc3b6! I've been trying to get on a system where this is reproducible. We recently had similar issues with exactly this (see #412). I'll try to find the exact motivation I had behind creating the directory before renaming. The comment suggests |
|
This issue also happens to jdtls (java), from observation, it is able to create a $LSP_SERVER from $LSP_SERVER.tmp, but the $LSP_SERVER is empty |
@williamboman I actually had some time today and tried to make this error reproducible. I couldn't... It only happens on this one old Debian stretch machine. I've tried to reproduce this error on clean Debian buster and bullseye images and couldn't... @alvinlee001 could you provide some information on what machine you encountered this error. |
I am using WSL2 Ubuntu in a windows computer, I was setting up my new desktop environment from fresh. I am using LunarVim, basically a Neovim with default functions, and do |
Other LSP servers are installed successfully |
I have the same issue with java above. Windows 11 PC. |
Problem description
I can't install clangd on a Debian 9 (stretch) mashine, that doesn't has clangd preinstalled.
Neovim version (>= 0.6)
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az87-780
Features: +acl +iconv +tui
Operating system/version
Linux zuse 4.9.0-17-amd64 #1 SMP Debian 4.9.290-1 (2021-12-12) x86_64 GNU/Linux
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
clangd
Actual behavior
Failed to promote the temporary installation directory "/home/USER/.local/share/nvim/lsp_servers/clangd.tmp"
The LspInstall can't rename the tmp directory to the target(/home/USER/.local/share/nvim/lsp_servers/clangd) ,
because the target already exists. It creates the empty target directory a few code lines earlier in server.lua
I don't know any Linux dirstributions on which mv succeeds if the target already exists. But maybe I'm overlooking something.
Expected behavior
Installation of clangd runs successfully by commenting out line 165 of server.lua.
LspInstallInfo output
Installation log
Healthcheck
Screenshots
No response
The text was updated successfully, but these errors were encountered: