Closed neoben closed 4 years ago
Is Vundle fetching the repo from GitHub? I'm curious why some of your plugins are declared as user/repo and some as a git url.
Anyway, please could you turn on logging on your broken version (:let g:gitgutter_log=1
), do something which should make a sign show up, then post the log file you'll find in the directory where gitgutter is installed? Thank you.
I think it is fetching from the GitHub repo but I'm not totally sure since I didn't dig into Vundle implementation. This is the reference I'm following: https://vimawesome.com/plugin/vim-gitgutter
I will provide the log you requested ASAP. Thank you!
gitgutter.log
==== start log session ====
0.000024 function gitgutter#process_buffer[21]..gitgutter#diff#run_diff[83]..gitgutter#async#execute[1]:
0.000024 [async] cd /home/neoben/workspace/fluidmesh/fmrepo/3200/buildroot/package/utils/fm-scripts/files/fluidmesh && (git --no-pager show :buildroot/package/utils/fm-scripts/files/fluidmesh/class.php > /tmp/vK5Ed6v/4.1.2.php && git --no-pager -c "diff.autorefreshindex=0" -c "diff.noprefix=false" -c "core.safecrlf=false" diff --no-ext-diff --no-color -U0 -- /tmp/vK5Ed6v/4.1.2.php /tmp/vK5Ed6v/5.1.2.php | grep '^@@ ' || exit 0)
0.038233 function <SNR>108_on_exit_vim[11]..gitgutter#diff#handler[1]:
0.038233 @@ -648,0 +649 @@ class nodeStatus
channel.log
==== start log session ====
0.000299 : Starting job: sh -c cd /home/neoben/workspace/fluidmesh/fmrepo/3200/buildroot/package/utils/fm-scripts/files/fluidmesh && (git --no-pager show :buildroot/package/utils/fm-scripts/files/fluidmesh/class.php > /tmp/vK5Ed6v/4.1.2.php && git --no-pager -c "diff.autorefreshindex=0" -c "diff.noprefix=false" -c "core.safecrlf=false" diff --no-ext-diff --no-color -U0 -- /tmp/vK5Ed6v/4.1.2.php /tmp/vK5Ed6v/5.1.2.php | grep '^@@ ' || exit 0)
0.000332 on 11: Created channel
0.008686 : looking for messages on channels
0.037007 RECV on 11(out): '@@ -648,0 +649 @@ class nodeStatus
'
0.037026 on 11: Invoking channel callback <SNR>108_on_stdout_vim
0.037817 on 11: channel_select_check(): Read EOF from ch_part[1], closing
0.037864 on 11: channel_select_check(): Read EOF from ch_part[2], closing
0.037887 : looking for messages on channels
0.037898 on 11: Closing channel because all readable fds are closed
0.037907 on 11: Closing channel
0.037923 on 11: Invoking callbacks and flushing buffers before closing
0.037934 on 11: Invoking close callback <SNR>108_on_exit_vim
0.038016 on 11: Job exited with 0
4.010443 : looking for messages on channels
4.013047 on 11: Freeing job
4.013082 on 9: Freeing job
4.013098 on 8: Freeing job
4.013121 on 11: Closing channel
4.013133 on 11: Clearing channel
4.013146 on 11: Freeing channel
4.013157 on 9: Closing channel
4.013167 on 9: Clearing channel
4.013177 on 9: Freeing channel
4.013187 on 8: Closing channel
4.013196 on 8: Clearing channel
4.013207 on 8: Freeing channel
4.013288 on 5: Freeing job
4.013342 on 4: Freeing job
4.014286 on 5: Closing channel
4.014305 on 5: Clearing channel
4.014329 on 5: Freeing channel
4.014341 on 4: Closing channel
4.014400 on 4: Clearing channel
4.014427 on 4: Freeing channel
4.014484 : looking for messages on channels
I also checked the version used and fetched by Vundle plugin and at the moment I'm running the following commit:
commit 0e509fb0ac56b24203800a1fab35162c8da9c9b4 (HEAD -> master, origin/master, origin/HEAD)
Author: Andy Stewart <boss@airbladesoftware.com>
Date: Thu Mar 12 10:38:58 2020 +0000
Set diff base when viewing file versions with Fugitive
When you look at previous versions of a file, e.g. with Fugitive's
:0Gclog, gitgutter will set the diff base to the current version's
parent so that diff markers appear as expected.
Thannks to @rcreasi for the idea and initial implementation.
Thank you!
Presumably you had added a single line at line 648?
class nodeStatus
The git-diff side all looks fine.
Your updatetime
is still at the default value of 4000 (i.e. 4 seconds). I'd suggest changing that to, say, 100.
SMALL NOTE: after enabling logging it started working but it seems to be very slow.
Presumably you had added a single line at line 648?
class nodeStatus
The git-diff side all looks fine.
Your
updatetime
is still at the default value of 4000 (i.e. 4 seconds). I'd suggest changing that to, say, 100.
I see, thank you!
How can I change the updatetime
value?
In your vimrc: set updatetime=100
Or when vim is running: :set updatetime=100
.
It is working fine. I think we can mark the issue as closed. Thanks a lot!
Hello! I have a vim GitGutter plugin installed via Vundle which is not working on my Ubuntu 19.10 while it is working perfectly fine on my Ubuntu 18.04.
Here it is some details about the software I'm running:
I'm using the same vimrc file on both machines with the following plugins installed:
GitGutterDebug
Thank you!