Comments (10)
My first step would be to look for any hanging git processes in ps aux
.
A similar issue was determined to be caused by a buggy MacVim release, but this is the first I've heard of for Debian. I've regularly used it on Debian with Git 1.7 so something more nuanced is at play.
from vim-fugitive.
Just to confirm, I'm happily using the latest vim-fugitive (762bfa7) with exactly Git 1.7.4.1 and Vim 7.3 (though not on Debian), so it's not just the versions.
from vim-fugitive.
I've got a backtrace, that is available on https://gist.github.com/871677 ... strace was started just before launching ":Gstatus"
The last two lines keep repeating until I kill the program.
wait4(26037, 0x7fff72d7799c, WNOHANG, NULL) = 0
nanosleep({0, 10000000}, NULL) = 0
I see no call to git in ps. Maybe I'm not quick enough to catch it...?
from vim-fugitive.
What happens if you do either
:pedit! /home/mathieu/src/vim-fugitive/.git/index
or even just
:edit /home/mathieu/src/vim-fugitive/.git/index
?
from vim-fugitive.
Good guess. Same thing : everything blocks. The file opens up fine if vim-fugitive is not active (vim --noplugin ...), but it hangs if it is active.
Some kind of race condition locking issue related to the index..?
from vim-fugitive.
I seem to have narrowed it down to line 1635:
call s:ReplaceCmd(s:repo().git_command('status'),index)
Specifically, the call to ReplaceCmd, which actually calls the given command.
I haven't the time to investigate further at the moment, but perhaps you could try substituting 'ls'
in place of the git-status bit, as in:
call s:ReplaceCmd('ls',index)
and seeing if that changes anything.
from vim-fugitive.
Tried it as-is, then played with different versions of this (but my knowledge of vim scripting is pretty small), to no avail.
from vim-fugitive.
If you take line 1599:
silent exe '!'.escape(prefix.a:cmd,'%#').' > '.tmp
and replace the silent exe
with echo
, it should output the command it's trying to run when it locks up instead of running it. I would expect to see something along the lines of:
!git --git-dir=/home/mathieu/src/vim-fugitive/.git status > /tmp/vve8lfz/0
Perhaps you could play around with variations of that with and without vim-fugitive present, unless you see something different.
from vim-fugitive.
Thanks 0, sorry for the trouble. It turns out the problem was that the "alternative" for vim was set to vim.gtk (even though I wasn't using that "flavor" of vim) instead of vim.basic. The "!..." command does not seem to work in vim.gtk.
Everything works fine now, cheers!
[edit: for those curious, the bug I was having seems to be http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612998]
from vim-fugitive.
Nice detective work!
from vim-fugitive.
Related Issues (20)
- What git command, if any, does inline diff call? HOT 2
- Creating own `:Git` commands like `:Git pushom` HOT 2
- Question: configuring hl for paths/sections in status view
- Error in BufWriteCmd in vim7 HOT 2
- commit fails with a cryptic message -- any ideas on how i can debug?
- Adding a FOSS license HOT 3
- failed to load git status (:G) in submodule path that starts with `lib/` HOT 1
- I want gitfugitive to open the diff in vertical mode in a separate neovim tab. HOT 1
- Status buffer performance for large repo is poor due to untracked file checks HOT 8
- Question: search `:G status` similar to `fugitive-object` HOT 1
- Git push freezes for 15 seconds HOT 9
- Issue when reusing same branch name that no longer exists in remote HOT 1
- after closing Gclog window, cursor didn't locate at previous window. HOT 1
- Gclog didn't focus on quickfix window HOT 2
- The lead `!:` of the completion item is redundant when complete `!:` object. HOT 1
- Diffing a file between two commits not work as expected.
- How to configure :Gbrowse for Neovim/Lua? HOT 2
- Fugitive Borked when using NVIM_APPDIR HOT 2
- Use winfixbuf in nvim for specific propouse windows HOT 6
- Git push issues and improvements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-fugitive.