tanvirtin / vgit.nvim

Visual git plugin for Neovim
MIT License
583 stars 11 forks source link

E154: Duplicate tag ":VGit" #343

Closed PrimaMateria closed 5 months ago

PrimaMateria commented 1 year ago

Description

In nix building the plugin with pkgs.vimUtils.buildVimPlugin fails because of duplicated tags in the docs:

       > Executing vimPluginGenTags
       > Building help tags
       > Error detected while processing command line:
       > E154: Duplicate tag ":VGit" in file /nix/store/7c8911a675bw7h6j5rmd87q13g50w6kl-vimplugin-vgit/./doc/vgit.txt
       > E154: Duplicate tag ":VGit" in file /nix/store/7c8911a675bw7h6j5rmd87q13g50w6kl-vimplugin-vgit/./doc/vgit.txtFailed to build help tags!

I was able to overcome this with a patch that removes the repeated tags at the bottom of the docs file:

diff --git a/doc/vgit.txt b/doc/vgit.txt
index 411056b..8dbb233 100644
--- a/doc/vgit.txt
+++ b/doc/vgit.txt
@@ -419,7 +419,6 @@ toggle_tracing()                                          *vgit.toggle_tracing()
 ==============================================================================
 COMMAND                                                        *vgit-navigation*

-                                                                         *:VGit*
 Any VGit preview that contains changes with highlights is navigatable,
 enhancing your git workflow drastically. Please refer to |hunk_up| and
 |hunk_down| mapping these functions to "<C-j>" and "<C-k>" is a personal
@@ -429,7 +428,6 @@ with a diff will also enable hunk navigations.
 ==============================================================================
 COMMAND                                                   *vgit-diff-preference*

-                                                                         *:VGit*
 Any VGit preview with a diff can be seen visually in two different ways,
 unified and split. Users can switch between these two styles anytime using
 |toggle_diff_preference|.

I don't open PR because I am not sure if you want to keep it removed or replace it with something else.

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: " /nix/store/cm208hvfg4nyrrvmf8424dda0mg6iiaw-neovim-unwrapped-master/share/nvim "

Run :checkhealth for more info

- Operating system: 

Linux yueix 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 GNU/Linux

spellman commented 1 year ago

I just had Lazy.nvim (https://github.com/folke/lazy.nvim) installation fail because of this issue.

ewoolsey commented 10 months ago

I just had Lazy.nvim (https://github.com/folke/lazy.nvim) installation fail because of this issue.

Me too.

tanvirtin commented 5 months ago

Closed by https://github.com/tanvirtin/vgit.nvim/pull/358