Open rickalex21 opened 2 months ago
How is this possible? What is changed in the build if anything?
This is how NixOS works (or doesn't π).
Downloading and attempting to run a binary on NixOS will almost never work. This is due to hard-coded paths in the executable. Unfortunately, almost all unfree and proprietary software comes in binary form - the main reason to include binaries is because no source code is available. This tutorial will guide you through packaging a binary executable.
So, I guess lua-language-server installed by Mason is missing some shared libraries, which of course are known by the NixOS package.
I made a blog post on this topic and one approach to solve this. It is labor intense and hacky but works (until a package is updated π ).
@Allaman I ended up creating a symbolic link which is a temporary simple solution. This is probably not even needed since it's already installed system wide. I'm not sure I have not been on neovim in a while.
cd ~/.local/share/nvim-lazyvim/mason/bin
ln -sf $(which lua-language-server) lua-language-server
Same thing happens with the following:
I've searched open issues for similar requests
I've manually reviewed logs to find potential errors
I've recently downloaded the latest plugin version of mason.nvim
Problem description
The package provided by Mason lua-language-server does not work with NIXOS. However, the package provided by NIXOS does work with NIXOS. How is this possible? What is changed in the build if anything?
I did read discussions number 839, it seems like a hacky way to do things.
Thanks
Expected behavior
The expected behavior would be to have a package that works out of the box.
Steps to reproduce
Try runing lua-language-server on NIXOS, it will point you to this website: How to run non-nix executables
Affected packages
lua-language-server
Neovim version (>= 0.7)
NVIM v0.9.5 Build type: Release LuaJIT 2.1.1693350652
Operating system/version
Linux nixos 6.6.24 1-NixOS SMP PREEMPT_DYNAMIC Wed Apr 3 13:29:04 UTC 2024 x86_64 GNU/Linux
Healthcheck
Screenshots or recordings
No response