-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
error: attribute 'cmp-ai' missing #1859
Comments
Are you using the main nixvim branch with a stable version of nixpkgs? |
I have not specified
is the result of |
I'm more used to dealing with flakes, but essentially if something is missing from Usually this happens when someone uses nixvim's main branch with the nixos-24.05 branch, but it can also happen if your nixpkgs channel is out of date (needs updating) or even too up to date and we haven't adapted to some nixpkgs changes yet. |
If I am using the official darwin nix channel for MacOS arm64, then does that mean that nixvim is currently broken for mac? |
Does it work if you use nixvim's I don't think nixpkgs has system-specific channels, per-se, so that shouldn't matter. How do you configure & manage your nixpkgs channel when using nix-darwin? |
On my nixOS machine (24.05) I have the same config but with And it seems to work perfectly. I just rebuilt my NixOS machine to make sure and it seems to be going fine. This |
Outside of nix-channel --list the only other thing I have is
in the darwin config. I did an install with the official darwin install and that's it |
Ok, I think there's a few unrelated things being mixed up here.
I'm only taking about your nixpkgs channel. nix-darwin etc shouldn't be a factor here. First, you can try Next, try using nixvim's stable branch. Otherwise can you share the output of |
Removing all nixvim stuff from my config lets me rebuild darwin without issue setting nixvim stable branch by using
here is
|
Update: It has now begun throwing the same error on NixOS systems:
|
So now the currently effected versions are:
|
So after some research it appears that cmp-ai is a remote code completion plugin for AI. I currently have all AI disabled in the config during the rebuild so no idea why it would be calling for a plugin that I am not using. |
To evaluate nixvim's modules all packages must exist in your nixpkgs channel, even if the plugins related to the package in question is not enabled.
If you're using nixvim's I'm unsure how to help you on nix-darwin because I'm unfamiliar with the platform, but the same principle applies. |
Okay so after some testing, in darwin MacOS I was able to get this to work by also defining
|
I am having the exact same problem even though I am not using it on macOS but on NixOS and NixOS-WSL. There already seems to be a solution but I dont really understand how to implement. |
@malik-n you might be better off opening a fresh discussion or reaching out on our matrix chennel. How to configure your nixvim input (and other channels) depends on how you have it installed:
The Installation Guide goes over most ways you can install nixvim. |
@MattSturgeon faq actually saved me. Had to switch to the 24.05 Branch on NixVim for it to work |
I having this on latest unstable (both with .follows and like below) error:
flake metadata:
flake inputs:
|
@yukkop if you're using one of the NixOS/home-manager/Darwin modules, then the flake input follows isn't very relevant. Instead, what matters is the "host" module's If you want to use unstable nixvim on a stable host, the only way to (currently) achieve this is with a standalone build. In the future #1784 will provide another solution to this problem. |
Running nix darwin
I tried commenting out the plugins to ensure that it isn't on a plugin..
But this is the error that I get?
The text was updated successfully, but these errors were encountered: