williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.22k stars 258 forks source link

Ubuntu 22.04 in WSL2 "Client pyright quit with exit code 127 and signal 0" #1733

Open jdloaner opened 2 weeks ago

jdloaner commented 2 weeks ago

I've searched open issues for similar requests

I've recently downloaded the latest plugin version of mason.nvim

Problem description

When I open a .py file I get the exit code error above.

Full error from lsp.log:

[ERROR][2024-06-11 21:22:36] .../vim/lsp/rpc.lua:770 "rpc" "/home/josh/.local/share/nvim/mason/bin/pyright-langserver" "stderr" "/home/josh/.local/share/nvim/mason/bin/pyright-langserver: 11: exec: node: not found\n"

Expected behavior

No python code suggestions are populating

Steps to reproduce

Open any .py file in neovim

Neovim version (>= 0.7)

NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info

Operating system/version

Linux DESKTOP-FPC 5.15.146.1-microsoft-standard-WSL2

Healthcheck output

1
    2 ──────────────────────────────────────────────────────────────────────────────
    3 lazy: require("lazy.health").check()
    4
    5 lazy.nvim
    6 - OK Git installed
    7 - OK no existing packages found by other package managers
    8 - OK packer_compiled.lua not found
    9 - WARNING {nvim-lspconfig}: overriding <config>
   10
   11 ──────────────────────────────────────────────────────────────────────────────
   12 luasnip: require("luasnip.health").check()
   13
   14 luasnip
   15 - WARNING             For Variable/Placeholder-transformations, luasnip requires
   16               the jsregexp library. See :help |luasnip-lsp-snippets-transformations| for advice
   17
   18
   19 ──────────────────────────────────────────────────────────────────────────────
   20 nvim: require("nvim.health").check()
   21
   22 Configuration
   23 - OK no issues found
   24
   25 Runtime
   26 - OK $VIMRUNTIME: /opt/nvim-linux64/share/nvim/runtime
   27
   28 Performance
   29 - OK Build type: Release
   30
   31 Remote Plugins
   32 - OK Up to date
   33
   34 terminal
   35 - key_backspace (kbs) terminfo entry: key_backspace=\177
   36 - key_dc (kdch1) terminfo entry: key_dc=\E[3~
   37
   38 External Tools
   39 - WARNING ripgrep not available
   40
   41 ──────────────────────────────────────────────────────────────────────────────
   42 provider.clipboard: require("provider.clipboard.health").check()
   43
   44 Clipboard (optional)
   45 - OK Clipboard tool found: xclip
   46
   47 ──────────────────────────────────────────────────────────────────────────────
   48 provider.node: require("provider.node.health").check()
   49
   50 Node.js provider (optional)
   51 - Disabled (loaded_node_provider=0).
   52

Screenshots

No response