APZelos / blamer.nvim

A git blame plugin for neovim inspired by VS Code's GitLens plugin
MIT License
734 stars 35 forks source link

Blamer doesn't work with Windows Powershell #50

Open zhengrc19 opened 3 years ago

zhengrc19 commented 3 years ago

This is my first issue ever written so please correct me if I'm formatting something wrong.

I am a Windows 10 user with Neovim 0.5.0. Everything was working great with blamer.nvim, until I added the line set shell=powershell.exe in my vimrc. Seems like there are some differences between cmd.exe and powershell.exe, which made blamer stop working and return this:

[blamer.nvim] An unknown element "" was received. This can happen if the remote process closed or ended abnormally.

This line is printed in the command line with Press ENTER or type command to continue below, so I'm basically unable to do any more operations before pressing ENTER and that makes Neovim unusable. Currently I deleted the line of setting the shell to powershell.

I also found this issue from vim-gitgutter that seems to have fixed the exact same problem by somehow forcing use of cmd.exe in the plugin. Maybe it would be simply a few more lines of code for the developer to add in? I know pretty much nothing about Vimscript so I don't know which part of the commit to add and where to add.

georgesofianosgr commented 3 years ago

Hello @zhengrc19 . We don't use Windows so it is impossible to implement a fix and test it. But if anyone wants to try and fix it we will accept a pull request :)