Open
Description
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
git clone https://invent.kde.org/naxdy/plasma-workspace.git --branch work/keep-notifications-usable-in-history
cd plasma-workspace
nvim
:e applets/notifications/package/contents/ui/FullRepresentation.qml
: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