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.58k stars 270 forks source link

clangd on arm64 #1411

Closed 0-issue closed 1 year ago

0-issue commented 1 year ago

I've searched open issues for similar requests

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

Problem description

:LspInstall clangd fails with "current platform is not supported" for arm64 arch linux virtual machine running on apple silicon macOS.

Expected behavior

clangd should work, it does via coc-clangd!

Affected packages

clangd

Mason output

No response

Installation log

"current platform is not supported"

Neovim version (>= 0.7)

❯ nvim --version
NVIM v0.10.0-dev-673+g622ae2f53
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Run "nvim -V1 -v" for more info

Operating system/version

Linux archlinuxexp 6.2.10-1-aarch64-ARCH #1 SMP PREEMPT_DYNAMIC Fri Apr 7 10:32:52 MDT 2023 aarch64 GNU/Linux

Healthcheck

mason: require("mason.health").check()
    4
    5 mason.nvim ~
    6 - OK mason.nvim version v1.6.0
    7 - OK PATH: prepend
    8 - OK Providers:
    9     mason.providers.registry-api
   10     mason.providers.client
   11 - OK neovim version >= 0.7.0
   12
   13 mason.nvim [Registries] ~
   14 - OK Registry `github.com/mason-org/mason-registry version: 2023-07-15-third-hockey` is installed.
   15
   16 mason.nvim [Core utils] ~
   17 - OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
   18 - WARNING wget: not available
   19   - ADVICE:
   20     - spawn: wget failed with exit code - and signal -. wget is not executable
   21 - OK curl: `curl 8.1.2 (aarch64-unknown-linux-gnu) libcurl/8.1.2 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.54.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 (aarch64-unknown-linux-gnu)`
   25 - OK sh: `Ok`
   26
   27 mason.nvim [Languages] ~
   28 - WARNING luarocks: not available
   29   - ADVICE:
   30     - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
   31 - WARNING Composer: not available
   32   - ADVICE:
   33     - spawn: composer failed with exit code - and signal -. composer is not executable
   34 - WARNING PHP: not available
   35   - ADVICE:
   36     - spawn: php failed with exit code - and signal -. php is not executable
   37 - WARNING Ruby: not available
   38   - ADVICE:
   39     - spawn: ruby failed with exit code - and signal -. ruby is not executable
   40 - WARNING RubyGem: not available
   41   - ADVICE:
   42     - spawn: gem failed with exit code - and signal -. gem is not executable
   43 - WARNING javac: not available
   44   - ADVICE:
   45     - spawn: javac failed with exit code - and signal -. javac is not executable
   46 - WARNING java: not available
   47   - ADVICE:
   48     - spawn: java failed with exit code - and signal -. java is not executable
   49 - WARNING julia: not available
   50   - ADVICE:
   51     - spawn: julia failed with exit code - and signal -. julia is not executable
   52 - OK python: `Python 3.11.3`
   53 - OK Go: `go version go1.20.5 linux/arm64`
   54 - OK cargo: `cargo 1.70.0`
   55 - OK node: `v20.3.1`
   56 - OK pip: `pip 23.1.2 from /usr/lib/python3.11/site-packages/pip (python 3.11)`
   57 - OK npm: `8.19.2`
   58 - OK python venv: `Ok`
   59
   60 mason.nvim [GitHub] ~
   61 - OK GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: Sat 15 Jul 2023 06:47:49 PM PDT.
   62   Install and authenticate via gh-cli to increase rate limit.
   63


### Screenshots

_No response_
williamboman commented 1 year ago

You seem to be on an arm64 system, for which there are no prebuilt binaries. coc uses a pretty much identical installation logic as Mason so I'd be surprised if you were able to install it on an arm64 system via coc. I get this:


> [coc.nvim] Failed to install clangd language server: Error: No clangd 16.0.2 binary available for linux/arm64
> You may want to install it manually. See https://clangd.llvm.org/installation.html. [Getting started](https://clangd.llvm.org/installation.html)
torstello commented 7 months ago

i have the same error (on arm64). May i ask how to exclude / disable the installation attempts of "clangd" ls completely. i get this error (and delay) with every startup of nvim. i did not find the configuration option...