From 8e5f5efc70680128545d26864263e5628fc74276 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 14 May 2026 12:29:15 +0100 Subject: fix(remote-dev): install basedpyright outside Mason Mason's pypi distribution of basedpyright pulls nodejs-wheel-binaries which only ships manylinux_2_28 Linux wheels. uv's python-build- standalone interpreter is tagged manylinux2014 (glibc 2.17 for max portability) and rejects those wheels; pip then falls back to building Node 24 from source, which fails on Ubuntu 20.04's gcc 9.4 (needs gcc >=10 for -std=gnu++20). Provide basedpyright via the system package manager instead: - pacman on Arch (added to meta/base.txt) - pkgs.basedpyright on the VM (added to remote-dev/home.nix) Drop it from mason-tool-installer's ensure_installed; lspconfig picks it up from PATH. Document the exception in remote-dev/README.md. --- dot_config/nvim/lua/plugins/lsp.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dot_config') diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua index 1a115db..a2a4036 100644 --- a/dot_config/nvim/lua/plugins/lsp.lua +++ b/dot_config/nvim/lua/plugins/lsp.lua @@ -22,7 +22,12 @@ require("mason-tool-installer").setup({ ensure_installed = { "actionlint", "autotools-language-server", - "basedpyright", + -- basedpyright: provided by the system pkg manager (basedpyright-bin from + -- AUR on Arch, pkgs.basedpyright in remote-dev/home.nix on the VM). Mason's pypi + -- distro pulls `nodejs-wheel-binaries` whose Linux wheels are only + -- manylinux_2_28; uv's standalone python (manylinux2014) rejects them and + -- pip falls back to building Node from source, which fails on Ubuntu + -- 20.04's gcc 9.4 (<10, no -std=gnu++20). lspconfig finds it on PATH. "bash-language-server", "clangd", "codelldb", -- cgit v1.3.1