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

Fails update vimdoc-ja(using lazy.nvim) #279

Closed
mimikun opened this issue Oct 23, 2023 · 10 comments
Closed

Fails update vimdoc-ja(using lazy.nvim) #279

mimikun opened this issue Oct 23, 2023 · 10 comments

Comments

@mimikun
Copy link

mimikun commented Oct 23, 2023

Sometimes updating vimdoc-ja fails.

Failed (1)
  󰊠 vimdoc-ja  h (c)
      You have local changes in `/home/username/.local/share/nvim/site/lazy/vimdoc-ja`:
        * doc/tags-ja
      Please remove them to update.
      You can also press `x` to remove the plugin and then `I` to install it again.

I need to uninstall and reinstall again.
It's very troublesome.

env

  • neovim: nightly
  • lazy.nvim: latest
  • OS:
    • Windows: Windows 11 Pro 22H2
    • Ubuntu: 22.04(WSL2)

Windows

エディション	Windows 11 Pro
バージョン	22H2
インストール日	‎2022/‎09/‎21
OS ビルド	22621.2500
エクスペリエンス	Windows Feature Experience Pack 1000.22677.1000.0

neovim

❯ nvim -V1 -v
NVIM v0.10.0-dev-bc850ba
Build type: RelWithDebInfo
LuaJIT 2.1.1697887905
Compilation: /usr/bin/gcc-10 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99
-Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_TS_HAS_SET_MAX_START_DEPTH -I/home/runner/work/neovim/neovim/.deps/usr/include/luajit-2.1 -I/usr/include -I/home/runner/work/neovim/neovim/.deps/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include -I/home/runner/work/neovim/neovim/build/cmake.config -I/home/runner/work/neovim/neovim/src

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim"

Run :checkhealth for more info
@k-takata
Copy link
Member

Whether to include doc/tags-ja in the repository was discussed before: vim-jp/vimdoc-ja-working#268

At that time, we decided to include it because Vim's help recommends to do so.
But, this kind of issue has been reported several times: e.g. vim-jp/vimdoc-ja-working#1206
We might need to reconsider it?
(I hope plugin managers handle this correctly, though.)

@mimikun
Copy link
Author

mimikun commented Oct 30, 2023

As far as I've researched, there are only a limited number of plugin managers that address this issue.

  • neovim: pckr.nvim

Is it possible to solve this by creating a branch (e.g. release) for installation with the plugin manager and setting it to ignore doc/tags-ja there?

@Shougo
Copy link
Member

Shougo commented Oct 30, 2023

Both dein.vim and dpp.vim also don't have the problem.

mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Oct 30, 2023
@h-east
Copy link
Member

h-east commented Oct 30, 2023

All Vim plugin managers that run :helptags unconditionally have this problem.
First of all, it is bad behavior for the plugin manager to unconditionally update the plugin's distribution file.

Vim plugin manager need to check the timestamp like minpac or add a judgment like this.

mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 1, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 2, 2023
@folke
Copy link

folke commented Nov 4, 2023

The reason that plugin managers like lazy generate doc tags for installed/updated plugins, is that 99% of the plugins do not provide doc tags, or ship outdated doc tags.

vimdoc-ja is in the minority here.

It's also a bad idea to put doc/tags under version control, since they don't really seem to be idempotent.

I'm not planning to add any kind of exceptions for plugin managed doc tags to lazy.nvim

mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 12, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 14, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 15, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 15, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 22, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 26, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Nov 27, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Dec 1, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Dec 14, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Dec 15, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Dec 18, 2023
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 1, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 10, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 13, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 16, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 22, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 23, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 28, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Jan 31, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Feb 2, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Feb 4, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Feb 7, 2024
mimikun added a commit to mimikun/vimdoc-ja that referenced this issue Feb 8, 2024
@mimikun
Copy link
Author

mimikun commented Feb 13, 2024

@mimikun mimikun closed this as completed Feb 13, 2024
@h-east
Copy link
Member

h-east commented Feb 13, 2024

@mimikun Hmm, I believe merging the PR below resolved this issue.
vim-jp/vimdoc-ja-working#1434

@mimikun
Copy link
Author

mimikun commented Feb 14, 2024

Thank you.
I'll try it once the changes from that commit are reflected in this repository.

@h-east
Copy link
Member

h-east commented Feb 14, 2024

It has already been reflected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants