Sertion / vscode-gitblame

Visual Studio Code Extension - See Git Blame info in status bar.
https://marketplace.visualstudio.com/items/waderyan.gitblame
MIT License
72 stars 31 forks source link

error blame info #42

Closed g8up closed 5 years ago

g8up commented 5 years ago

After I updated line 3, the blame info on the status bar shows a wrong time 18 days ago. And git blame -- .eslintrc.json shows the right info.

my extension version is 2.4.4

vsc-ext-git-blame-issue
Sertion commented 5 years ago

Hello g8up.

This looks like an issue with the file watcher. Did you get any output in the "Extension: Gitblame" Output log?

g8up commented 5 years ago
my "Extension: Gitblame" output (on MacBook) ```log [ 23:53:32 | error ] Error: Can not execute "D:\program files\Git\bin\git.exe" (your git.path property) falling back to "git" [ 23:53:32 | command ] git rev-parse --show-toplevel [ 23:53:32 | error ] Error: Can not execute "D:\program files\Git\bin\git.exe" (your git.path property) falling back to "git" [ 23:53:32 | command ] git blame --incremental -- /Users/baidu/Code/oschina/cdn/src/cdn.js [ 23:53:32 | error ] Error: Can not execute "D:\program files\Git\bin\git.exe" (your git.path property) falling back to "git" [ 23:53:32 | command ] git blame --incremental -- /Users/baidu/Code/oschina/cdn/src/cdn.js [ 23:53:32 | info ] Blamed file "/Users/baidu/Code/oschina/cdn/src/cdn.js" and found 8 commits [ 23:53:32 | info ] Blamed file "/Users/baidu/Code/oschina/cdn/src/cdn.js" and found 8 commits [ 23:53:37 | error ] Error: Can not execute "D:\program files\Git\bin\git.exe" (your git.path property) falling back to "git" [ 23:53:37 | command ] git rev-parse --show-toplevel [ 23:53:37 | error ] Error: Can not execute "D:\program files\Git\bin\git.exe" (your git.path property) falling back to "git" [ 23:53:37 | command ] git blame --incremental -- /Users/baidu/Code/oschina/cdn/src/util.js [ 23:53:37 | error ] Error: Can not execute "D:\program files\Git\bin\git.exe" (your git.path property) falling back to "git" [ 23:53:37 | command ] git blame --incremental -- /Users/baidu/Code/oschina/cdn/src/util.js [ 23:53:37 | info ] Blamed file "/Users/baidu/Code/oschina/cdn/src/util.js" and found 4 commits [ 23:53:37 | info ] Blamed file "/Users/baidu/Code/oschina/cdn/src/util.js" and found 4 commits [ 23:57:32 | info ] Clearing the file "/Users/baidu/Code/oschina/cdn/src/cdn.js" from the internal cache [ 23:58:25 | info ] Will not try to blame file "/tasks" as it is outside of the current workspace [ 00:02:25 | info ] Clearing the file "/tasks" from the internal cache [ 00:07:09 | info ] Will not try to blame file "/tasks" as it is outside of the current workspace [ 00:11:09 | info ] Clearing the file "/tasks" from the internal cache [ 00:12:55 | info ] Will not try to blame file "/tasks" as it is outside of the current workspace [ 00:14:17 | info ] Will not try to blame file "/extensions" as it is outside of the current workspace [ 00:14:40 | info ] Will not try to blame file "/extension-output-#1" as it is outside of the current workspace [ 00:15:33 | info ] Will not try to blame file "/rendererLog" as it is outside of the current workspace [ 00:15:38 | info ] Will not try to blame file "/sharedLog" as it is outside of the current workspace [ 00:16:55 | info ] Clearing the file "/tasks" from the internal cache [ 00:17:33 | info ] Will not try to blame file "/mainLog" as it is outside of the current workspace [ 00:17:50 | info ] Will not try to blame file "/extension-output-#3" as it is outside of the current workspace [ 00:18:17 | info ] Clearing the file "/extensions" from the internal cache ```
g8up commented 5 years ago

After I switch my setting git.path from windows path to mac book path, It works.

Sertion commented 5 years ago

Great news! I will close this issue.