Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with git windows version #1144

Open
KonnosPB opened this issue Nov 8, 2021 · 2 comments
Open

Issue with git windows version #1144

KonnosPB opened this issue Nov 8, 2021 · 2 comments

Comments

@KonnosPB
Copy link

KonnosPB commented Nov 8, 2021

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

@janlazo
Copy link
Collaborator

janlazo commented Nov 15, 2021

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.

@x2db
Copy link

x2db commented Mar 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants