-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
[BUG] error: Alias bash-language-server is still in node-packages.nix
error when building on current nixos-unstable
#1699
Comments
The issue is we are using an old package name for the bash language server. This should only affect you if you are overriding nixvim's nixpkgs lock (i.e. Until we fix this in See #1696, you should either remove/comment out your "nixvim follows" line, or rollback your flake.lock to an older nixpkgs revision. EDIT: upstream PR is NixOS/nixpkgs#319882 |
Just had this and fixed this issue by removing |
If you want to apply input changes to Incidentally, if you want to change what an input points to without modifying your |
See [nixvim/#1699][1] for context. [1]: <nix-community/nixvim#1699>
i have only still having the same issue. |
`error: Alias bash-language-server is still in node-packages.nix` nix-community/nixvim#1699 bash-ls package was moved and the update hasn't reached nixos-unstable yet.
I was still getting the error after removing the "follows" line. I ended up pinning my nixpkgs input to the same rev as the nixpkgs input for nixvim and that worked fine as expected. |
I removed the 'follows' line from mine, went to the directory with my NixOS config, and ran |
Did you run |
After removing the |
If The upstream PR has made it to
I'm curious which installation method you use for nixvim (nixos, hm, darwin, standalone), it may be this determines whether nixvim evaluate using its own nixpkgs input or the |
Using this commit, I no longer get this error, both with and without follows. Thank you!
I'm using a standalone |
I'm also seeing this where I got a custom nixvim flake that wraps nixvim this has
And just running |
The update has now made it into nixpkgs. Now #1702 is stopping me from building, but this is a separate issue. |
It's not yet in
|
Just curious, is there a reason why setting |
I haven't looked at this specific case, but NixOS modules often evaluate a lot of branches that might not get evaluated in non-module nix expressions. This is done to ensure more parts of your config are valid, even some parts you aren't using. For instance, |
I suspect this might be due to |
Fixed in #1719 |
Since I thought it might be of use to others, I fixed the nixpkg dependency overriding problem by removing the home manger module and just used nixvim as a standalone overlay. Getting extra plugins working was a little tricky: I add it to my overlay and add my extraPluginsSrc vim plugin inputs to extraSpecialArgs. It uses a trick to get all the inputs starting with "vimplugin-", but you can just pass in an attrset manually if you like. I then build them using the nixpkgs in nixvim And pass in to extraPlugins then you can just use
|
bashls
unstable
unstable
Description
Every time I attempt to build nixvim on the current revision of nixpkgs on nixos-unstable, the error below is thrown.
I assumed that I had to disable bashls in the lsp options in order to fix this but that does not fix it
Minimal, Reproducible Example (MRE)
The text was updated successfully, but these errors were encountered: