-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
erlang-ls installation failed (error=spawn: bash) #1835
Comments
Let me explain this awkward situation: The version of erlang-ls in the Mason Registry is 0.52.0, as you can verify from its package.yaml. The issue you mentioned regarding installation failure is a known issue with version 0.52.0, and it was resolved in later versions quite some time ago. What’s the latest version of erlang-ls now? It’s 1.1.0. Yes, it sounds crazy, but that’s the current state of things. I suspect the root cause lies in erlang-ls aggressively bumping its version while the Mason Registry’s use of the renovate bot for automated scanning and merging may have mismatched configurations. I’m not very familiar with renovate bot, but after a quick look at its configuration, it seems that the merge strategy for erlang-ls might be strictly tied to semantic versioning. This could result in major version changes being classified as non-auto-mergeable. In practice, manually bumping the version to 1.1.0 solves everything. I’ve tested it on macOS with ARM chips and on standard Linux environments without encountering any issues. For now, the best approach for you personally is to manually run:
to upgrade your local version. As for the Mason project maintainers @williamboman, they might either need to revise the renovate bot configuration (which looks quite tricky) or manually update the version in the registry. The PR is already there. |
If renovate bot is afraid of beyond- Q: @aemaeth-me Is your workaround permanent, or Mason will attempt a downgrade later? Answering myself...
Sigh... |
@aemaeth-me you were right, that command fixed it for me, but then I have the downgrade problem. |
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
During the Erlang LS installation via Mason, at step 825 I receive the following error:
No other LS presents this issue
Expected behavior
erlang-ls
installation successfully completedAffected packages
erlang-ls
Mason output
Installation log
Neovim version (>= 0.7)
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1731601260
Operating system/version
Linux sicro 6.12.0-gentoo #1 SMP Mon Nov 18 15:40:57 -03 2024 x86_64 AMD Ryzen 7 PRO 4750U with Radeon Graphics AuthenticAMD GNU/Linux
Healthcheck
Screenshots
No response
The text was updated successfully, but these errors were encountered: