outside of the allowed boundary `lsp_folder_here`
Lite5h4dow opened this issue · 9 comments
Problem description
getting the following error trying to install or update language servers
...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:40: Refusing to rmrf "/home/lotus/.local/share/nvim/lsp_servers/python.tmp" which is outside of the allowed boundary "/home/lotus/.config/nvim/.lsp_servers". Please report this error at https://github.com/williamboman/nvim-lsp-installer/
dosent matter what language server it wont let me update or install.
Neovim version (>= 0.7)
neovim version v0.7.0
Operating system/version
Arch linux
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
- Yes
Affected language servers
(all)
Actual behavior
not installing anything spitting th eabove error at me whenever i install or update
Expected behavior
install and or update language servers
LspInstallInfo output
No response
Installation log
[ERROR Wed 08 Jun 2022 01:03:19 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/denols/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:19 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:153: Failed to spawn process. cmd="gh", err="ENOENT: no such file or directory"
[ERROR Wed 08 Jun 2022 01:03:19 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/dockerfile/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:20 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/grammarly/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:20 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/html/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:20 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/jsonls/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:21 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/python/nvim-lsp-installer-receipt.json"
[INFO Wed 08 Jun 2022 01:03:25 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="bashls", requested_version=""
[ERROR Wed 08 Jun 2022 01:03:25 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="bashls", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/bash.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:03:25 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="bashls", success=false
[ERROR Wed 08 Jun 2022 01:03:25 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/bash/nvim-lsp-installer-receipt.json"
[INFO Wed 08 Jun 2022 01:03:26 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="cssls", requested_version=""
[ERROR Wed 08 Jun 2022 01:03:26 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="cssls", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/cssls.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:03:26 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="cssls", success=false
[INFO Wed 08 Jun 2022 01:03:26 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="denols", requested_version=""
[ERROR Wed 08 Jun 2022 01:03:26 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="denols", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/denols.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:03:26 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="denols", success=false
[INFO Wed 08 Jun 2022 01:03:27 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="dockerls", requested_version=""
[ERROR Wed 08 Jun 2022 01:03:27 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="dockerls", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/dockerfile.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:03:27 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="dockerls", success=false
[ERROR Wed 08 Jun 2022 01:03:56 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/bash/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:56 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/cssls/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:57 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/denols/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:58 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:153: Failed to spawn process. cmd="gh", err="ENOENT: no such file or directory"
[ERROR Wed 08 Jun 2022 01:03:58 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/dockerfile/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:03:58 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/grammarly/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:03 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/html/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:03 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/jsonls/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:04 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/python/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:04 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/rust/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:04 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:153: Failed to spawn process. cmd="gh", err="ENOENT: no such file or directory"
[ERROR Wed 08 Jun 2022 01:04:04 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/solargraph/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:05 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:153: Failed to spawn process. cmd="gh", err="ENOENT: no such file or directory"
[ERROR Wed 08 Jun 2022 01:04:05 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/tailwindcss_npm/nvim-lsp-installer-receipt.json"
[ERROR Wed 08 Jun 2022 01:04:05 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/tsserver/nvim-lsp-installer-receipt.json"
[INFO Wed 08 Jun 2022 01:04:09 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="bashls", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:09 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="bashls", error='...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:36: Refusing to rmrf "/home/lotus/.local/share/nvim/lsp_servers/bash.tmp" which is outside of the allowed boundary "/home/lotus/.config/nvim/.lsp_servers". Please report this error at https://github.com/williamboman/nvim-lsp-installer/issues/new'
[INFO Wed 08 Jun 2022 01:04:09 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="bashls", success=false
[ERROR Wed 08 Jun 2022 01:04:09 PM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:10: assert_ownership() failed on path "/home/lotus/.local/share/nvim/lsp_servers/bash/nvim-lsp-installer-receipt.json"
[INFO Wed 08 Jun 2022 01:04:09 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="cssls", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:09 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="cssls", error='...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:36: Refusing to rmrf "/home/lotus/.local/share/nvim/lsp_servers/cssls.tmp" which is outside of the allowed boundary "/home/lotus/.config/nvim/.lsp_servers". Please report this error at https://github.com/williamboman/nvim-lsp-installer/issues/new'
[INFO Wed 08 Jun 2022 01:04:09 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="cssls", success=false
[INFO Wed 08 Jun 2022 01:04:10 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="denols", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:10 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="denols", error='...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:36: Refusing to rmrf "/home/lotus/.local/share/nvim/lsp_servers/denols.tmp" which is outside of the allowed boundary "/home/lotus/.config/nvim/.lsp_servers". Please report this error at https://github.com/williamboman/nvim-lsp-installer/issues/new'
[INFO Wed 08 Jun 2022 01:04:10 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="denols", success=false
[INFO Wed 08 Jun 2022 01:04:10 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="dockerls", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:10 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="dockerls", error='...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:36: Refusing to rmrf "/home/lotus/.local/share/nvim/lsp_servers/dockerfile.tmp" which is outside of the allowed boundary "/home/lotus/.config/nvim/.lsp_servers". Please report this error at https://github.com/williamboman/nvim-lsp-installer/issues/new'
[INFO Wed 08 Jun 2022 01:04:10 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="dockerls", success=false
[INFO Wed 08 Jun 2022 01:04:12 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="html", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:12 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="html", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/html.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:04:12 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="html", success=false
[INFO Wed 08 Jun 2022 01:04:13 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="jsonls", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:13 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="jsonls", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/jsonls.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:04:13 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="jsonls", success=false
[INFO Wed 08 Jun 2022 01:04:14 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="pyright", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:14 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="pyright", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/python.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:04:14 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="pyright", success=false
[INFO Wed 08 Jun 2022 01:04:14 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="rust_analyzer", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:14 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="rust_analyzer", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/rust.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:04:14 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="rust_analyzer", success=false
[INFO Wed 08 Jun 2022 01:04:14 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="solargraph", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:14 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="solargraph", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/solargraph.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:04:14 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="solargraph", success=false
[INFO Wed 08 Jun 2022 01:04:15 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="sumneko_lua", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:15 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:153: Failed to spawn process. cmd="gh", err="ENOENT: no such file or directory"
[INFO Wed 08 Jun 2022 01:04:16 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="sumneko_lua", success=true
[INFO Wed 08 Jun 2022 01:04:17 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="tsserver", requested_version=""
[ERROR Wed 08 Jun 2022 01:04:17 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="tsserver", error='...taller/lua/nvim-lsp-installer/core/installer/context.lua:113: "/home/lotus/.local/share/nvim/lsp_servers/tsserver.tmp" is not a subdirectory of "/home/lotus/.config/nvim/.lsp_servers"'
[INFO Wed 08 Jun 2022 01:04:17 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="tsserver", success=false
[INFO Wed 08 Jun 2022 01:04:18 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="yamlls", requested_version=""
[INFO Wed 08 Jun 2022 01:04:21 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="yamlls", success=true
[ERROR Wed 08 Jun 2022 06:44:05 PM BST] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="pyright", error='...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:40: Refusing to rmrf "/home/lotus/.local/share/nvim/lsp_servers/python.tmp" which is outside of the allowed boundary "/home/lotus/.config/nvim/.lsp_servers". Please report this error at https://github.com/williamboman/nvim-lsp-installer/issues/new'
[INFO Wed 08 Jun 2022 06:44:05 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/ui/init.lua:754: Installation completed server_name="pyright", success=false
Healthcheck
1
2 nvim-lsp-installer: require("nvim-lsp-installer.health").check()
3 ========================================================================
4 ## nvim-lsp-installer report
5 - OK: neovim version >= 0.7.0
6 - OK: Go: `go version go1.18.1 linux/amd64`
7 - OK: cargo: `cargo 1.56.0 (4ed5d137b 2021-10-04)`
8 - WARNING: luarocks: not available
9 - OK: Ruby: `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]`
10 - OK: RubyGem: `3.2.3`
11 - WARNING: Composer: not available
12 - WARNING: PHP: not available
13 - OK: npm: `8.5.5`
14 - OK: node: `v17.9.0`
15 - OK: python3: `Python 3.10.4`
16 - OK: pip3: `pip 21.0 from /usr/lib/python3.10/site-packages/pip (python 3.10)`
17 - WARNING: javac: not available
18 - WARNING: java: not available
19 - WARNING: julia: not available
20 - OK: wget: `GNU Wget 1.21.3 built on linux-gnu.`
21 - OK: curl: `curl 7.82.0 (x86_64-pc-linux-gnu) libcurl/7.82.0 OpenSSL/1.1.1n zlib/1.2.12 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.47.0`
22 - OK: gzip: `gzip 1.12`
23 - OK: tar: `tar (GNU tar) 1.34`
24 - OK: bash: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)`
25 - OK: sh: `Ok`
26 - OK: GitHub API rate limit. Used: 2. Remaining: 58. Limit: 60. Reset: Wed 08 Jun 2022 07:42:14 PM BST.
Screenshots
Hello! Make sure you setup nvim-lsp-installer (require("nvim-lap-installer").setup {}
) before any other interactions with it.
I found your public dotfiles, and if those are up to date it seems like you're calling .settings() after interactions with nvim-lsp-installer. Also, .setup() is now the way to setup the plugin - see more here #636
And are you confident you don't have any other code in your initialization scripts that interacts with nvim-lsp-installer? Only lsp-zero?
I think I might've found an issue with lsp-zero. I will open a PR
If you'd like you could try out VonHeikemen/lsp-zero.nvim#20 and see if it fixes things.
use { "williamboman/lsp-zero.nvim", branch = "fix/lsp-installer-setup" }
or alternatively (if you use packer with default install location)
$ cd ~/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim
$ git fetch origin refs/pull/20/head
$ git checkout FETCH_HEAD
edit: nvm, this won't have any effect
If you'd like you could try out VonHeikemen/lsp-zero.nvim#20 and see if it fixes things.
I'll give it a go in the morning, it's after 1am here and I'm too tired to tinker with nvim configs rn, thanks for the quick fix though!
Its better if you open an issue on lsp-zero
and give more details about your setup. I can't reproduce this issue with a minimal config using the recommended preset.
So, something in your init script is changing the install root dir to ~/.config/nvim/.lsp_servers
. Refer to this section to see how to customize nvim-lsp-installer settings when using lsp-zero (tldr; do it before setting up lsp-zero).