-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Errors setting up on Windows 7 (g:vundle_last_status undefined) #575
Comments
tried to add the trailing slash as suggested in #469 but nothing changed. |
I've been running into the same issue on Windows 7, and my exhaustive search of the internet has lead me here. Interestingly, I've found another symptom. When I run a :PluginInstall, the .git folder in my current working directory gets wholesale replaced with no user input. For reference:
|
I see nobody replied to this issue for several days, so I decided to jump to a Windows machine and give it a try. Indeed, the problem was there. After some investigation, I've found that the Antivirus sandbox was the problem. |
I was going to test turning off my Antivirus, but on my Windows computer at home it wasn't even necessary. Hmm. I'll have to check again on Monday. |
Ok, back at work now; seems like the repo was updated to cfd3b2d in the meantime. On my home installation that shares the configuration files, everything is fine. On my work, the error messages haven't really changed. I did deactivate the virus scanner temporarily, but it didn't help either. My guess is now that there is an issue with long usernames or dots in usernames and the temp folder where vundle stores some kind of status. At home, I'm 'matthias', at work, I am 'matthias.kauer'. |
Ok. Let's try to narrow down the problem.
|
I had no problem writing to $TMP from vim. CMD Output:
PowerShell Output:
|
@ModeEngage Have you chcked your Antivirus (or any other security software) for blocked operations or tried to disable them temporarily? |
Looked at all of the logs anti-virus has to offer me -- saw nothing indicating I'd had any operations blocked. |
Another obeservation: I can reproduce this problem also when there's a problem with the Git commands. It doesn't act like in Linux, for example, which is a problem, but let's check. Go to the bundle directory and into Vundle.vim. Then run:
Please post the result. |
|
Looks fine for Vundle.vim |
Results are similar on my machine; no issues writing to temp. git output looks identical, but I don't really know what to make of that. Another idea: is it possible that there are old files created during previous unsuccessful installations that are now lurking somewhere? Can we clear something to get back to a clean slate?
|
Another test: |
Vundle seems ok, but the problem could have happened with any other problematic plugin. |
His minimal vimrc contains only two plugins, though. |
@ModeEngage are you sure this is the same problem? What is your minimal vimrc that reproduces your issue? Can you try @MatthiasKauer 's file to see if you get the same errors with it? |
After some more testing, I've found a weird thing. I've made a small change to fix it. Can you please give it a try and say if it works? |
I'm trying, but it seems you hit the limits of my git abilities.
after that. This didn't work however even though the tutorials I can find adhoc claim that it should. Can you advise? |
Sure :)
Note that it should fail to update Vundle. That's ok, but at least it should fail in a good manner, i.e. without that annoying error and with an exclamation mark in the Vundle window. After that,
|
Ok, I pulled from your forked repository now. I had missed that this isn't the same url anymore. Also, I note again that it doesn't fail to update. Well, it does installs anyway that work afterwards. Whether it would update, I haven't really checked thus far. I don't get to see the final log, so it's a bit tricky. |
Hi. I'm sorry for the late response. Just to test the hypothesis of my fix, try to run both of the following commands in a git repository after you checkout some arbitrary commit (e.g.
If the above works, please verify again that you checked out my branch in the location Vundle is loaded from and reopened Vim after you checked it out. Also, can you please post the output of the following settings:
Those are the settings used to build the command system is going to execute. If this still doesn't work, we can try to analyze what really happens there with a bit more advanced tool. I'll try to explain the basics of its usage. The tool is called Procmon (Process Monitor) and is part of the Sysinternals tools. You can download it from here. This tool will allow us to see all the accesses to the filesystem, registry, network, etc.
Try to set a filter for 'Path' including 'Temp', start monitoring, reopen Vim and try to update the plugins. You can try to analyze this yourself or save the results and link them here. But notice it contains a lot of information about programs running and paths in your system, especially if you choose to save everything and not just the filtered results. I hope it will bring us closer to finding a solution to this problem. |
I've been stricken with the plague -- I'll provide more data when I'm feeling less like a corpse. |
All the best @ModeEngage ! Thanks for bearing with us @Av3r4ge afterthought: I added HOME as a user variable like here but it didn't change anything. |
My bad, I'm too used to Unix notation that I wrote $var automatically instead of %var%. One more thing, if you don't have %HOME% set, from where does it load Vundle?
You have these two lines in your .vimrc. What $HOME and ~ expand to in Vim? |
The error handling is attrocious, which tends to obscure error causes. I also suspect that windows users who get things to work don't report back with suggestion for improvements. I've just started with vundle, and have run into so many issues that i'm not sure i'll stay with it. Fortunately, code quality looks better than the behaviour suggests, but the combination of brittleness and error handling leaves a bad initial impression for windows users (still struggling with a variation of #509 myself). That last status variable should be initialized before use, but the game is already lost when the temp file can't be read. Vundle tries to keep a log, but when a system call aborts, the cmd that fails hasn't been written to the log yet. once that is fixed (Swap a few lines in the vundle code), you can extract the failing cmd from the log and run it in a standalone cmd window to inspect errors (if the plugin name is wrong, there may be a prompt that you never get to see otherwise). |
This seems to help a little (though I'm still seeing bugs):
This will keep your |
Since quoting/escaping on windows is no fun (and application-dependent), here is a link to So, wrapping |
$HOME expands fine within vim to %USERPROFILE%. Executing
creates an empty tst.txt.
creates a tst.txt with 'already up to date' I also tried the patch that clausreinke offered. It successfully suppresses the errors and certainly improves the situation. Thank you! Hitting 'u' for the update log at the end still won't work however (error complains that some .tmp couldn't be found'). Should we investigate this further or should we be happy with this? |
- ensure that all system calls go via installer.vim (vundle#installer#system, used to be s:system) - escape/wrap complex command sequences - log commands before trying to execute them
@MatthiasKauer that is correct. |
Ok, I did what I had described 2 posts up with the minimal _vimrc from my first post (I amended 'gmarik/Vundle.vim' to 'clausreinke/Vundle.vim'). It worked well with that setup (including the log I get when I hit 'l' at the end). |
- ensure that all system calls go via installer.vim (vundle#installer#system, used to be s:system) - escape/wrap complex command sequences - log commands before trying to execute them
I'm afraid I'm back with bad news; I just tested branch collected_fixes on my home machine assuming that the standard branch wouldn't work there either. However, as odd as it sounds, the opposite was the case. Errors about git clone not being a command on the new branch; everything working as expected on gmarik commit cfd3b2d. |
Try
Unless the first suddenly starts working, and the second failing, the patch is necessary. Note also that your error message is new, so you should investigate that in more detail ( |
still testing on my home machine: |
Wow, that sounds completely broken. The first is expected (only the output of the second echo is captured and returned to vim), the second has changed (looks like excessive quoting). And if you're running a default vim setup without modifications, that must be change in vim itself (from 7.3 to 7.4). We need to find the relevant vim patch, and how to test for it. Assuming that patch was a fix, could you try wrapping the command in () instead of ""? Ps. The master branch of my fork has two commits that shouldn't be there, but i'm still not sure why it would be working for you, under these conditions. |
Probably relevant: https://github.com/airblade/vim-system-escape |
have now installed vim 7.4 and can confirm extensive changes in the way system arguments are escaped for windows. I've updated the fork/pull request #589 to account for version difference and the two vim patches that seem to be responsible. This now works for me with an old vim 7.3 and a new vim 7.4 - I haven't tested with a new vim 7.3 (with the relevant patches). |
Back on my work PC where vim was still 7.3. I can confirm that Claus' changes are working (I pulled the newest collected_fixes). I have now upgraded to 7.4 and his changes are still working. |
I see that #589 is not merged and I can still reproduce the same problem with latest Vundle.git and vim 7.4.769 |
Where are you getting the longer version number from? I've been happy since I switched to 7.4 on multiple devices although I haven't updated vundle in a while, I suppose. |
I've also came across this problem and switch to vim 7.4 also solved my problem. Just don't know how does the update fix it.. |
@apple601601601 Consider the links that clausreinke posted on April 13; there appear to have been major changes in vim's string handling between 7.3 and 7.4. |
Same problem here, but the hint given by @clausreinke pointed me to the right direction: |
I had similar problems to this. I don't know if it was my virus checker or what, but when I went into |
Hmm it appears I've spoken too soon... That did indeed solve my problem for when I launched gVim from the Start Menu shortcut. However, If I were to launch gVim from GitBash, I'd get those same E484 errors. If I just ran the plain-jane http://stackoverflow.com/a/10622083/33689 Namely:
|
I had the same problems stemming from the fact that I have configured PowerShell as my shell:
I am able to work around this by overriding
Would love to know if there is a better approach for integrating PowerShell. |
Hi guys. Just got similar problems. Suddenly started getting a lot of |
Following @airelil advice I run the following command in each plugin directory: |
Same issue. Another plugin manager: Minimalist Vim Plugin Manager is working fine. |
maybe you need to reinstall Git for Windows, https://git-scm.com/downloads |
I had the same errors shown in the original post while moving from Vim 7.4 to 8.1 on Windows 10. Problem: On my system the problem appears to have stemmed from the fact that I did not have Git for Windows installed with the option to Solution:
mkdir %USERPROFILE%\vimfiles\bundle
pushd %USERPROFILE%\vimfiles\bundle
git clone https://github.com/VundleVim/Vundle.vim.git
set nocompatible
filetype off
set rtp+=$HOME/vimfiles/bundle/Vundle.vim/
call vundle#begin('$USERPROFILE/vimfiles/bundle/')
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
So far, everything is working fine. The Vundle for Windows wiki page mentions that curl is no longer packaged with Git, but the official installer does include it:
If you encounter curl related errors, you may need to add it to your |
I am getting this same error. I am in windows 10. I moved my temp folder without any success. Added gvim to environmental variables, still nothing. I have both python and python3 included in my vim installation. I also tried running gvim as administrator and than trying to install the plugins. still no cigar. Response of `gvim --version``
Response of
Response of
Let me know if other details are required. Update 1: Reinstalled git, still the same problem. It works when i use the command prompt vim (and not gvim); so gvim is what maybe causing problems. For now, I will use command prompt vim to update plugins and gvim for work i guess. Update 2: Apparently it was my antivirus quarantining vimrun.exe. It works now. YAY! |
I've encountered this issue since I quit the cmd.exe when its downloading was unfinished. |
I was getting tired of getting errors while trying to update or install plugins due to an open issue in vundle on windows (<VundleVim/Vundle.vim#575>). I also had to face the fact that Vundle.vim is not really getting any updates any more so there's no reason not to switch to another plugin manager. Use [vim-plug](https://github.com/junegunn/vim-plug) instead! Seems to work perfectly without issues.
I've had this issue today and found another problem/solution. My setup: I solved it by commenting this line in my .vimrc: Everything was working fine up to today, when I tried to execute VundleUpdate. After reading some of your comments I remembered the last change I did in my .vimrc, which was the line I mentioned before. After commenting out that line, VundleUpdate runs again without any issue. Hope it helps. |
Hi,
this is similar to #399 ,but the fixes there seem to work only for an older version.
My minimal _vimrc
The fix for the temp folder is disabled, but I'm calling a file from a writable directory (if not: different swap file related errors, but ok). Errors after
:PluginInstall
are:I followed the discussion around #294 and #175 . There, people had similar errors and solved them by setting their shell to bash in vim. I am not sure how this applies to my situation on Win7 however.
I also tried the _vimrc suggested in #399 . It didn't work either because I couldn't adjust it to my _vimrc + $Home/vimfiles/bundle setup and vundle#rc seems not to be there anymore.
Now I'm stuck. Can you suggest what I should look into next? Is there maybe an issue with capital letters or punctuation in folder names on Windows (github repo name seems to have changed from vundle to Vundle.vim judging from older issues)?
PS:
The text was updated successfully, but these errors were encountered: