Eliot00 / git-lens.vim

A vim9 plugin inspired by VSCode's GitLens.
GNU Affero General Public License v3.0
59 stars 1 forks source link

`ShowBlameWithVirtualText` is not called #11

Closed Dabulv closed 2 months ago

Dabulv commented 4 months ago

The git-lens.vim not run very well on one of my linux system, while ok on my macOS. And finally locates to ShowBlameWithVirtualText is not called. I debug by add codes echoerr before, after and within ShowBlameWithVirtualText, only echoerr in ShowBlameWithVirtualText is not executed.

170 blame_job = job_start(blame_command, { 171 "out_cb": (channel, message) => ShowBlameWithVirtualText(message), 172 "mode": "raw" 173 })

Eliot00 commented 4 months ago

Can you echo blame_command and try it in shell?

Dabulv commented 2 months ago

Thanks a lot.

Trying blame_command in shell: Unknown option: -C usage: git [--version] [--help] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>]

And I fix this problem by change code from 154 const blame_command = [ 155 'git', 156 '-C', to 154 const blame_command = [ 155 'git', 156 '-c',