Skip to content
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

Enableing lspkind causes build failure #624

Closed
1 task done
linuxchr opened this issue Feb 11, 2025 · 6 comments
Closed
1 task done

Enableing lspkind causes build failure #624

linuxchr opened this issue Feb 11, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@linuxchr
Copy link

⚠️ Please verify that this bug has NOT been reported before.

  • I checked all existing issues and didn't find a similar issue

Description

Probably Npins.
Probably releated to #619 #620 #621

👟 Reproduction steps

vim.lsp.lspkind.enable = true;

👀 Expected behavior

No Build failure

😓 Actual Behavior

Build failure

💻 Metadata

  • system: "x86_64-linux" - host os: Linux 6.6.76, NixOS, 24.11 (Vicuna), 24.11.20250208.a45fa36 - multi-user?: yes - sandbox: yes - version: nix-env (Nix) 2.24.12 - nixpkgs: /nix/store/wlicjyms3s5pnzi3hmsaysn000rmc6ls-source

📝 Relevant log output

❯ nh home switch
warning: Git tree '/home/christian/.local/nix' is dirty
warning: Git tree '/home/christian/.local/nix' is dirty
> Building home configuration
warning: Git tree '/home/christian/.local/nix' is dirty
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/wlicjyms3s5pnzi3hmsaysn000rmc6ls-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/wlicjyms3s5pnzi3hmsaysn000rmc6ls-source/pkgs/build-support/trivial-builders/default.nix:59:17:
           58|         enableParallelBuilding = true;
           59|         inherit buildCommand name;
             |                 ^
           60|         passAsFile = [ "buildCommand" ]

       … while evaluating the option `home.activation.installPackages.data':

       … while evaluating definitions from `/nix/store/cd0q2vk9vqwjg9rcilymm4x8f4n673zi-source/modules/home-environment.nix':

while evaluating the option `programs.mnw.plugins':

       … while evaluating definitions from `<unknown-file>':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: A definition for option `programs.nvf.settings.vim.startPlugins."[definition 30-entry 1]"' is not of type `null or package or one of "aerial-nvim", "alpha-nvim", "base16-nvim", "blink-compat", "bufdelete-nvim", "catppuccin", "ccc-nvim", "cellular-automaton-nvim", "chatgpt-nvim", "cheatsheet-nvim", "cinnamon-nvim", "cmp-buffer", "cmp-luasnip", "cmp-nvim-lsp", "cmp-path", "cmp-treesitter", "codewindow-nvim", "comment-nvim", "copilot-cmp", "copilot-lua", "crates-nvim", "csharpls-extended-lsp-nvim", "dashboard-nvim", "diffview-nvim", "dracula-nvim", "dressing-nvim", "elixir-tools-nvim", "fastaction-nvim", "fidget-nvim", "flutter-tools-nvim", "friendly-snippets", "fzf-lua", "gesture-nvim", "gitsigns-nvim", "glow-nvim", "gruvbox-nvim", "haskell-tools-nvim", "highlight-undo-nvim", "hop-nvim", "icon-picker-nvim", "image-nvim", "indent-blankline-nvim", "lazydev-nvim", "leap-nvim", "lsp-lines", "lsp-signature-nvim", "lspkind-nvim", "lspsaga-nvim", "lua-utils-nvim", "lualine-nvim", "luasnip", "lz-n", "lzn-auto-require", "mind-nvim", "mini-ai", "mini-align", "mini-animate", "mini-base16", "mini-basics", "mini-bracketed", "mini-bufremove", "mini-clue", "mini-colors", "mini-comment", "mini-completion", "mini-diff", "mini-doc", "mini-extra", "mini-files", "mini-fuzzy", "mini-git", "mini-hipatterns", "mini-hues", "mini-icons", "mini-indentscope", "mini-jump", "mini-jump2d", "mini-map", "mini-misc", "mini-move", "mini-notify", "mini-operators", "mini-pairs", "mini-pick", "mini-sessions", "mini-snippets", "mini-splitjoin", "mini-starter", "mini-statusline", "mini-surround", "mini-tabline", "mini-test", "mini-trailspace", "mini-visits", "minimap-vim", "modes-nvim", "neo-tree-nvim", "neocord", "neorg", "neorg-telescope", "neovim-session-manager", "new-file-template-nvim", "noice-nvim", "none-ls-nvim", "nord-nvim", "nui-nvim", "nvim-autopairs", "nvim-bufferline-lua", "nvim-cmp", "nvim-colorizer-lua", "nvim-cursorline", "nvim-dap", "nvim-dap-go", "nvim-dap-ui", "nvim-docs-view", "nvim-lightbulb", "nvim-lspconfig", "nvim-metals", "nvim-navbuddy", "nvim-navic", "nvim-neoclip-lua", "nvim-nio", "nvim-notify", "nvim-scrollbar", "nvim-surround", "nvim-tree-lua", "nvim-treesitter-context", "nvim-ts-autotag", "nvim-ufo", "nvim-web-devicons", "obsidian-nvim", "omnisharp-extended-lsp-nvim", "onedark-nvim", "orgmode", "otter-nvim", "oxocarbon-nvim", "pathlib-nvim", "plenary-nvim", "precognition-nvim", "project-nvim", "promise-async", "rainbow-delimiters-nvim", "registers-nvim", "render-markdown-nvim", "rose-pine", "rtp-nvim", "run-nvim", "rustaceanvim", "smartcolumn-nvim", "sqls-nvim", "tabular", "telescope", "tiny-devicons-auto-colors-nvim", "todo-comments-nvim", "toggleterm-nvim", "tokyonight-nvim", "trouble", "ts-error-translator-nvim", "typst-preview-nvim", "vim-dirtytalk", "vim-fugitive", "vim-illuminate", "vim-markdown", "vim-repeat", "vim-startify", "which-key-nvim", "yanky.nvim", "nvim-treesitter", "flutter-tools-patched", "vim-repeat"'. Definition values:
       - In `/nix/store/r3xgznbxmqiw5fnrrd4bnp276wa12wyk-source/modules/plugins/theme/theme.nix': "gruvbox"
┏━ 1 Errors:
┃ error:
┃        … while calling the 'derivationStrict' builtin
┃          at <nix/derivation-internal.nix>:34:12:
┃            33|
┃            34|   strict = derivationStrict drvAttrs;
┃              |            ^
┃            35|

┃        … while evaluating derivation 'home-manager-generation'
┃          whose name attribute is located at /nix/store/wlicjyms3s5pnzi3hmsaysn000rmc6ls-source/pkgs/stdenv/generic/make-derivation.nix:336:7

┃        … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
┃          at /nix/store/wlicjyms3s5pnzi3hmsaysn000rmc6ls-source/pkgs/build-support/trivial-builders/default.nix:59:17:
┃            58|         enableParallelBuilding = true;
┃            59|         inherit buildCommand name;
┃              |                 ^
┃            60|         passAsFile = [ "buildCommand" ]

┃        … while evaluating the option `home.activation.installPackages.data':

┃        … while evaluating definitions from `/nix/store/cd0q2vk9vqwjg9rcilymm4x8f4n673zi-source/modules/home-environment.nix':

┃        … while evaluating the option `programs.mnw.plugins':

┃        … while evaluating definitions from `<unknown-file>':

┃        (stack trace truncated; use '--show-trace' to show the full, detailed trace)

┃        error: A definition for option `programs.nvf.settings.vim.startPlugins."[definition 30-entry 1]"' is not of type `null or package or one of "aerial-nvim", "alpha-nvim", "base16-nvim"
┃        - In `/nix/store/r3xgznbxmqiw5fnrrd4bnp276wa12wyk-source/modules/plugins/theme/theme.nix': "gruvbox"
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 18:11:33 after 2s
Error:
   0: Command exited with status Exited(1)

Location:
   src/commands.rs:151
@linuxchr linuxchr added the bug Something isn't working label Feb 11, 2025
@NotAShelf
Copy link
Owner

Definitely npins, makes me wonder if @Gerg-L tested his changes at all...

@folospior
Copy link
Contributor

@NotAShelf I have a fix working, but a lot more plugins are broken, mostly due to name changes. For example "nord" was changed into "nord-nvim", so it fails to build as well. I'll PR the lspkind fix though

@Gerg-L
Copy link
Contributor

Gerg-L commented Feb 11, 2025

gruvbox pin is misnamed, neat

@NotAShelf
Copy link
Owner

everything is misnamed, gerg you bald frog

@NotAShelf
Copy link
Owner

I'm going to rename theme inputs to their names without -nvim, though my power is still out so I can't work on this right now. If anyone could send a PR, I would appreciate that.

@NotAShelf
Copy link
Owner

Fixed by #626

Just-Helpful added a commit to Just-Helpful/nvf that referenced this issue Feb 11, 2025
NotAShelf pushed a commit that referenced this issue Feb 11, 2025
* fix: corrects theme names in `npins/sources.json`

See:
- [themes broken](#619)
- [lspkind broken](#624)

* release-notes: adds fix to plugin theme names
isaacST08 pushed a commit to isaacST08/nvf that referenced this issue Feb 12, 2025
* fix: corrects theme names in `npins/sources.json`

See:
- [themes broken](NotAShelf#619)
- [lspkind broken](NotAShelf#624)

* release-notes: adds fix to plugin theme names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants