Coder Social home page Coder Social logo

Comments (10)

tpope avatar tpope commented on August 18, 2024

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.

0 avatar 0 commented on August 18, 2024

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.

scyrma avatar scyrma commented on August 18, 2024

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.

0 avatar 0 commented on August 18, 2024

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.

scyrma avatar scyrma commented on August 18, 2024

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.

0 avatar 0 commented on August 18, 2024

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.

scyrma avatar scyrma commented on August 18, 2024

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.

0 avatar 0 commented on August 18, 2024

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.

scyrma avatar scyrma commented on August 18, 2024

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.

tpope avatar tpope commented on August 18, 2024

Nice detective work!

from vim-fugitive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.