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

[BUG] Failed to build nvim-dap (duplicated helper "before" tag) #2544

Open
1 task done
mugiwarix opened this issue Nov 19, 2024 · 3 comments
Open
1 task done

[BUG] Failed to build nvim-dap (duplicated helper "before" tag) #2544

mugiwarix opened this issue Nov 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@mugiwarix
Copy link

Field Description
Plugin nvim-dap
Nixpkgs unstable
Home Manager unstable
  • I have read the FAQ and my bug is not listed there.

Description

Enabling the nvim-dap plugin with programs.nixvim.plugins.dap.enable=true; produces the following error when building the nixos configuration:

sudo nixos-rebuild test --show-trace --option eval-cache false
warning: Git tree '/home/[REDACTED]/.nixos-config' is dirty
building the system configuration...
warning: Git tree '/home/[REDACTED]/.nixos-config' is dirty
error: builder for '/nix/store/[REDACTED]-vimplugin-plugin-pack.drv' failed with exit code 1;
       last 10 log lines:
       > Sourcing vim-command-check-hook.sh
       > Using vimCommandCheckHook
       > Sourcing vim-gen-doc-hook
       > Sourcing neovim-require-check-hook.sh
       > Using neovimRequireCheckHook
       > created 854 symlinks in user environment
       > Executing vimPluginGenTags
       > Building help tags
       > Error detected while processing command line:
       > E154: Duplicate tag "before" in file /nix/store/[REDACTED]-vimplugin-plugin-pack/./doc/mini-cursorword.txtFailed to build help tags!
       For full logs, run 'nix log /nix/store/[REDACTED]-vimplugin-plugin-pack.drv'.
error: 1 dependencies of derivation '/nix/store/[REDACTED]-neovim-0.10.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/[REDACTED]-nixos-system-[REDACTED]-24.11.20241111.dc460ec.drv' failed to build

In the full log I have also this warning, I don't know if it is relevant for the bug:

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/[REDACTED]-vimplugin-plugin-pack.drv^*'

Minimal, Reproducible Example (MRE)

Just enable the nvim-dap plugin with programs.nixvim.plugins.dap.enable=true;. The nixpkg channel is unstable and the nixvim version is the following:

"nixvim": {
      "inputs": {
        "devshell": "devshell",
        "flake-compat": "flake-compat_3",
        "flake-parts": "flake-parts",
        "git-hooks": "git-hooks",
        "home-manager": "home-manager_2",
        "nix-darwin": "nix-darwin",
        "nixpkgs": [
          "nixpkgs"
        ],
        "nuschtosSearch": "nuschtosSearch",
        "treefmt-nix": "treefmt-nix"
      },
      "locked": {
        "lastModified": 1731707185,
        "narHash": "sha256-IfA3x0eL4Be/7hvdvGSnT8fgiXz7GL3PtjGw3BH68gM=",
        "owner": "nix-community",
        "repo": "nixvim",
        "rev": "be455f7f2714ce3479ae5bb662a03bd450f45793",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "nixvim",
        "type": "github"
      }
    },
@mugiwarix mugiwarix added the bug Something isn't working label Nov 19, 2024
@lnrds
Copy link

lnrds commented Nov 25, 2024

I had the same issue and it was related to the experimental option performance.combinePlugins.
nvim-dap and mini.nvim have a duplicated tag so one of them needs to be listed in the performance.combinePlugins.standalonePlugins option.
I don't know if listing one or the other gives better performance but it shouldn't be enough to be noticed.

@khaneliman
Copy link
Contributor

If anyone comes across plugins like this that need to be isolated, it might be worth adding a warning to the plugin's documentation about potential conflicts with combinePlugins.

@mugiwarix
Copy link
Author

Sorry for the late reply, disabling the combinePlugins did the job. Should we suggest to the developers to add a warning?

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

3 participants