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] :DiffviewFileHistory % fails in some repos, but not in others. #537

Open
Naxdy opened this issue Oct 24, 2024 · 0 comments · May be fixed by #540
Open

[Bug] :DiffviewFileHistory % fails in some repos, but not in others. #537

Naxdy opened this issue Oct 24, 2024 · 0 comments · May be fixed by #540
Labels
bug Something isn't working

Comments

@Naxdy
Copy link

Naxdy commented Oct 24, 2024

Description

When running :DiffviewFileHistory %, the command fails for some repo + file combinations, but not in others.

Expected behavior

:DiffviewFileHistory % shows a history of the current file without failing.

Actual behavior

:DiffviewFileHistory % fails with:

Error executing luv callback:                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
...art/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:529: attempt to get length of upvalue 'data' (a nil value)                                                                                                                                                                                                                                                                                                                                                                           
stack traceback:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
        ...art/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:529: in function 'listener'                                                                                                                                                                                                                                                                                                                                                                                                  
        ...yNeovimPackages/start/diffview.nvim/lua/diffview/job.lua:193: in function <...yNeovimPackages/start/diffview.nvim/lua/diffview/job.lua:173> 

Steps to reproduce

  1. git clone https://invent.kde.org/naxdy/plasma-workspace.git --branch work/keep-notifications-usable-in-history
  2. cd plasma-workspace
  3. nvim
  4. :e applets/notifications/package/contents/ui/FullRepresentation.qml
  5. :DiffviewFileHistory %

Health check

Output of :checkhealth diffview
diffview: require("diffview.health").check()

Checking plugin dependencies ~
- OK nvim-web-devicons installed.

Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.46.1)
- WARNING Configured `hg_cmd` is not executable: 'hg'

Log info

Relevant info from :DiffviewLog
[INFO  2024-10-24 09:45:43.010 +0200] ...art/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:884: [FileHistory] Updating with options: { flags = { "--follow", "-n256", "--diff-merges=first-parent" }, path_args = { "applets/notifications/package/contents/ui/FullRepresentation.qml" } }
[INFO  2024-10-24 09:45:49.268 +0200] ...diffview/scene/views/file_history/file_history_panel.lua:248: [FileHistory] Completed update for 0 entries successfully (6279.922 ms).

Neovim version

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Operating system and version

Linux 6.10.9-zen1 x86_64 GNU/Linux

Minimal config

No response

@Naxdy Naxdy added the bug Something isn't working label Oct 24, 2024
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

Successfully merging a pull request may close this issue.

1 participant