-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
git integration not working in Windows. #2466
Comments
You could try increasing timeout, it might be genuine slowness of your system. Please bump |
I have tried. It's not working and it stucked for a long time. |
It is 28c3980 and later commits that make git status highlight not working. |
This looks like it might be a path escaping issue. 28c3980 did make a change to always use absolute paths, to allow for worktrees etc. Please revert to 0074120 , repeat the test and report the logs. |
That sounds likely. How long does On UNIX we'd do something like: : ; time git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
!! doc/tagsgit --no-optional-locks status --porcelain=v1 -z --ignored=matching -u 0.00s user 0.01s system 89% cpu 0.006 total I do not know what the windows equivalent of |
I reverted to 0074120. in git bash:
nvim-tree.log
|
Issue could be related to #2467 Normalising paths may resolve this. Which variant of windows are you using @peter-lyr ? Powershell, WLS, msys, cygwin, something else? I'd be most grateful if you ran a feature flag audit for your windows variant, to assist us in dealing with future issues. Please open and :source this feature flag enumerator: |
Thank you @alex-courtis. I didn't use any
|
Many thanks for the feature flags @peter-lyr , it was very enlightening: https://github.com/nvim-tree/nvim-tree.lua/wiki/Development#os-feature-flags |
@peter-lyr I'd be most grateful if you tested an attempted fix: I'm flying pretty blind here so we might need a few rounds of testing. cd /path/to/nvim-tree.lua
git pull
git checkout 2466-windows-git-failures My hypothesis is that |
A more comprehensive fix has been applied and has been released on master: #2478 @peter-lyr please update nvim-tree to current master or later and re-test. |
The fix seems stable for other cases / users, as no news is good news. Please reopen if you experience further issues. |
em.. This problem still seems to be triggered (I can't stably surface it yet), I have adjusted the timeout to 1000 |
I have now enabled the log of nvim-tree. I will report when it occurs. |
Description
5 git jobs have timed out after git.timeout 400ms, disabling git integration.
Neovim version
Operating system and version
Windows 10
nvim-tree version
53b0bca
Clean room replication
Steps to reproduce
Expected behavior
git highlight status
Actual behavior
5 git jobs have timed out after git.timeout 400ms, disabling git integration.
nvim-tree.log:
[2023-10-14 00:43:18] [git] git -C C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config rev-parse --show-toplevel --absolute-git-dir
C:/nv/nvim-win64-092/share/nvim/runtime/pack/nvim_config
C:/nv/nvim-win64-092/share/nvim/runtime/pack/nvim_config/.git
[2023-10-14 00:43:19] [git] git -C C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
config status.showUntrackedFiles
fatal: cannot change to 'C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
': Invalid argument
[2023-10-14 00:43:19] [git] running job with timeout 400ms
[2023-10-14 00:43:19] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
[2023-10-14 00:43:19] [git] job timed out C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
nil
[2023-10-14 00:43:25] [git] running job with timeout 400ms
[2023-10-14 00:43:25] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
[2023-10-14 00:43:26] [git] job timed out C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
nil
[2023-10-14 00:43:27] [git] running job with timeout 400ms
[2023-10-14 00:43:27] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
[2023-10-14 00:43:28] [git] job timed out C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
nil
[2023-10-14 00:43:28] [git] running job with timeout 400ms
[2023-10-14 00:43:28] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
[2023-10-14 00:43:28] [git] job timed out C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
nil
[2023-10-14 00:43:28] [git] running job with timeout 400ms
[2023-10-14 00:43:28] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
[2023-10-14 00:43:29] [git] job timed out C:\nv\nvim-win64-092\share\nvim\runtime\pack\nvim_config
nil
[2023-10-14 00:43:29] [git] disabling git integration
[2023-10-14 00:43:29] [git] purge_state
The text was updated successfully, but these errors were encountered: