vim-plug icon indicating copy to clipboard operation
vim-plug copied to clipboard

Issue with git windows version

Open KonnosPB opened this issue 4 years ago • 2 comments

Hi,

Although I am a vim beginner, I quickly came across vim-plug. I noticed that the plugin encounters problems of following type in some environments.

Fehler beim Ausführen von "function <SNR>21_install[1]..<SNR>21_update_impl[62]..<SNR>21_git_version_requirement[2]..<SNR>21_system[30]..function <SNR>21_install[1]..<SNR>21_update_impl[62]..<SNR>21_g
it_version_requirement[2]..<SNR>21_system":
Zeile   24:
E484: Can't open file C:\Users\KONSTA~1.PAP\AppData\Local\Temp\VBVA3E4.tmp
Fehler beim Ausführen von "function <SNR>21_install[1]..<SNR>21_update_impl[62]..<SNR>21_git_version_requirement":
Zeile    2:
E171: Missing :endif
Fehler beim Ausführen von "function <SNR>21_install[1]..<SNR>21_update_impl":
Zeile   62:
E171: Missing :endif 

grafik

I suspect it has something to do with version handling in the function s:git_version_requirement or s:version_requirement. For this you should know that the git version output looks like this.

git version --build-options

git version 2.33.1.windows.1
cpu: x86_64
built from commit: 05d80adb775077d673fab685009ede4a1003ed92
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

grafik

KonnosPB avatar Nov 08 '21 08:11 KonnosPB

Only the first 3 version numbers, 2.33.1, are checked because of how s:git_version_requirement is used throughtout the plug.vim file. It's probably the ongoing tempfile issue like in the other issues. No way around it without rewriting s:system() to not depend on the temp batchfiles.

janlazo avatar Nov 15 '21 00:11 janlazo

I have the same issue on Mac machine. Running PlugInstall comes with similar messages. So it is not windows issue. Janlazo, are you suggesting that I cannot use this plugin ever? I don't think anybody will touch s:system() for compatibility issues. There must be workaround to bypass some of the crazy version checking. FYI here is the error after running PlugInstall for first time. Yes I did start with clean installation by running

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Anything else I can provide to help to resolve this ?

Screen Shot 2022-03-17 at 2 57 43 PM

x2db avatar Mar 17 '22 19:03 x2db