You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error executing vim.schedule lua callback: ...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:187: The coroutine failed
with this message:
context: cur_thread=main co_thread=<thread 0x02698deff6e8> co_func=...iffview.nvim/lua/diffview/scene/views/diff/diff_vi
ew.lua:327
...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:426: attempt to index a nil value
stack traceback:
...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua: infunction'func'
...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:373: infunction<...ocal/nvim-data/lazy/diffview.nvim/lua/d
iffview/async.lua:358>
stack traceback:
[C]: infunction'error'
...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:187: infunction'raise'
...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:215: infunction'step'
...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:247: infunction'notify_all'
...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:222: infunction'step'
...ocal/nvim-data/lazy/diffview.nvim/lua/diffview/async.lua:399: infunction<...ocal/nvim-data/lazy/diffview.nvim/lua/d
iffview/async.lua:391>
Expected behavior
No response
Actual behavior
it occassionally shows the error from the description.
Steps to reproduce
Stage a file or a couple of files from the panel on the left within diffview.
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.48.1.vfs.0.1)
- WARNING Configured `hg_cmd` is not executable: 'hg'
Ok, this is a problem with cygwin based git (mimgw or msys2 distributions).
It can return absolute paths in cygwin format: c:/aaa/bbb returned as /c/aaa/ccc.
So, when parse paths from the git output under Windows and relative path is expected and path starts with / - you need to convert it to the Windows form.
Something like this:
Ok, this is a problem with cygwin based git (mimgw or msys2 distributions). It can return absolute paths in cygwin format: c:/aaa/bbb returned as /c/aaa/ccc. So, when parse paths from the git output under Windows and relative path is expected and path starts with / - you need to convert it to the Windows form. Something like this:
if vim.fn.has('win32') == 1 and string.sub(path, 1, 1) == '/' then
path = string.gsub(string.sub(path, 2, 2) .. ':' .. string.sub(path, 3), '/', '\')
end
@zdm it seems you found the issue, could you raise a PR with the fix ?
Description
Expected behavior
No response
Actual behavior
it occassionally shows the error from the description.
Steps to reproduce
Stage a file or a couple of files from the panel on the left within diffview.
Health check
Output of
:checkhealth diffview
Log info
Relevant info from
:DiffviewLog
Neovim version
Operating system and version
Windows
Minimal config
The text was updated successfully, but these errors were encountered: