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
Doesn't show anything #377
Comments
Does it work with |
yes, it works! |
The same on |
@linuxenko What does Please can you add |
@airblade , i cannot copy directly from |
I get similar problem. Gitgutter shows hunks on start, but does not update them afterwards. Here is my GitGutterDebug output. I don't know why it's almost empty, am I doing something wrong? I have gitgutter_log set to 1.
|
@Gonzih With |
So I was rewriting my vimrc to use Shougo/dein.vim and after that gitgutter suddenly works. No idea what was the problem, but I guess it was my setup. Sorry about the noise then. |
Same problem on Win7 + Vim 8.0.124 + Git 2.11.0 Output of
The log file is
The interesting part is:
I think it runs grep without filename parameter. |
Does it work if you add |
Yes, it gets working. 👍 |
So the grep command is definitely the problem, as you said.
The log should record the command, including the grep part (when you haven't bypassed grep as we just did). Please could you paste the command the plugin produces?
… On 22 Dec 2016, at 10:36, Bimba Laszlo ***@***.***> wrote:
Yes, it gets working. 👍
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sorry, I forgot to use minimal .vimrc - the problem is the same, but remember for this if viewing my previous outputs. I using a minimal .vimrc from now:
So the log is:
Grep is on my PATH (using Msys-Git's version) and I can call Setting |
An interesting thing is what I execute it (
|
Ok, another question: does it work with `let g:gitgutter_async=0`?
… On 22 Dec 2016, at 11:18, Bimba Laszlo ***@***.***> wrote:
Sorry, I forgot to use minimal .vimrc - the problem is the same, but remember for this if viewing my previous outputs.
I using a minimal .vimrc from now:
set nocompatible
filetype plugin indent on
syntax enable
let $PATH = $PATH . ';c:/app/git/usr/bin'
let g:gitgutter_log = 1
set runtimepath+=$HOME/.vim/plugins/vim-gitgutter
So the log is:
==== start log session ====
0.000032 function gitgutter#process_buffer[10]..gitgutter#diff#run_diff[75]..gitgutter#async#execute[51]:
0.000032 [vim job: {'status': 'run', 'stoponexit': 'term', 'exitval': 0, 'exit_cb': 0, 'channel': channel 0 open, 'process': 6880}, buffer: 1] cd . && (git ls-files --error-unmatch .vimrc && (git -c "diff.autorefreshindex=0" diff --no-ext-diff --no-color -U0 -- .vimrc | grep --color=never -e "^@@ " || exit 0))
0.731516 function gitgutter#async#handle_diff_job_vim[1]:
0.731516 channel: channel 0 open, line: .vimrc
0.832373 function gitgutter#async#handle_diff_job_vim_close[1]:
0.832373 channel: channel 0 buffered
0.834403 function gitgutter#async#handle_diff_job_vim_close[11]..gitgutter#handle_diff[1]:
0.834403 .vimrc
Grep is on my PATH (using Msys-Git's version) and I can call :!grep.
Setting g:gitgutter_grep_command = 'grep -e' does not effects the behaviour.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, it works (this is how I using for now). |
So the problem would appear to be with piping into grep in an async job...
… On 22 Dec 2016, at 12:05, Bimba Laszlo ***@***.***> wrote:
Yes, it works (this is how I using for now).
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Finally found the solution, the problem is in Vim:
|
Specifying the command as a list seems to be less reliable. See #377.
Excellent! Thanks for the test case and the results. I have updated the plugin – please could you confirm it works out of the box, i.e. without disabling grep or the async processing? |
Works for me, but don't forget that the issue is/was exists on Linux too as @linuxenko reported. I'm curious about her experiment. |
I found this while trying to figure out what was going on with my gitgutter not showing anything, and it turned out the root cause was that there were too many diffs, but for whatever reason the feedback that vim-gitgutter gave was hard for me to see, but I ended up increasing the max via: |
For me the issue was that I had in my set.lua this line: changed "no" to "yes" and it works like a charm. |
I have a lot of changes in a git repo but no visual indication at all.
Win10, vim8.
I have tried to GitGutterEnable/Disable but nothing happens.
The text was updated successfully, but these errors were encountered: