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

:BundleInstall and :Bundles throw errors, don't work #175

Closed
maxcountryman opened this issue May 14, 2012 · 18 comments
Closed

:BundleInstall and :Bundles throw errors, don't work #175

maxcountryman opened this issue May 14, 2012 · 18 comments

Comments

@maxcountryman
Copy link

Hi,

I've been banging my head against a wall with this for the last several hours: basically I can't seem to get Vundle to work at all.

I'm running OS X 10.7.3, MacVim Snapshot 64. I've cloned Vundle into ~/.vim/bundle/vundle. Here's my vimrc for reference: http://pastebin.com/raw.php?i=tXhZJ1bH

The most persistent error is related to /var not being writable: "Can't open file: /var/folders/q4/..." (Although the specific path is owned by be user and other apps are using /var just fine.) Also I see "Error fetching scripts!" with :Bundles. There's some other error about undefined variables that pops up now and then.

I finally decided to just rm -rf ~/.vim and start from scratch. But the same issues persist. Any idea what might be causing this?

@maxcountryman
Copy link
Author

I managed to capture the error output:

Error detected while processing function vundle#scripts#all..<SNR>27_load_scripts..<SNR>27_fetch_scripts: line 21: E484: Can't open file /var/folders/q4/d0lp3tbs551f6lp59btd3hr40000gn/T/v5jsU64/0 line 24: Error fetching scripts! 0 bundles found

@maxcountryman
Copy link
Author

set shell=/bin/bash in my vimrc fixed this. Apparently MacVim was doing something weird with the shell prior to executing the vundle initialization function.

@gmarik
Copy link
Contributor

gmarik commented May 15, 2012

@maxcountryman, happy to hear that you managed to fix it!

@lloeki
Copy link

lloeki commented Apr 25, 2013

Wow, that one fixed all bundles refusing to install with a useless processing error. Using zsh here, but it worked at work where I use zsh too.

@confessin
Copy link

It fixed for me too.. I was getting a processing error with "E484 can't open file /tmp" I am using fish. Would love to know what went wrong.

@haarts
Copy link

haarts commented May 20, 2013

I, too, have this problem with fish. zsh and bash worked fine. @maxcountryman can you tell us how you have captured the output?

@maxcountryman
Copy link
Author

@haarts I forget how to do it now, but there's a way to copy that buffer where the error propagates in vim. Maybe Google can tell you?

@bs
Copy link

bs commented Aug 9, 2013

I was getting this with Fish as well. @maxcountryman: Is that what you're using?

Vim requires a POSIX-Compliant shell. Fish isn't. The solution is to add this to the top of your vimrc:
" Vim needs a POSIX-Compliant shell. Fish is not.
if $SHELL =~ 'bin/fish'
set shell=/bin/sh
endif

@maxcountryman
Copy link
Author

@bs yes, I use fish.

@vikstrous
Copy link

I too ran into this and fixed it by adding set shell=/bin/bash to my .vimrc (I'm using fish)

@galli-a
Copy link

galli-a commented Mar 6, 2014

I just started to see this error on Windows.
This happened after switching from Windows XP to Windows 7.
I installed MsysGit, but with no luck.

The errors I get are:

Processing 'gmarik/vundle'
Error detected while processing function vundle#installer#new..<SNR>129_process..vundle#installer#run..vundle#installer#install..<SNR>129_sync..<SNR>129_system:
line    1:
E484: Can't open file C:\Users\gallia1\AppData\Local\Temp\VIo8E1E.tmp
Error detected while processing function vundle#installer#new..<SNR>129_process:
line   13:
E121: Undefined variable: g:vundle_last_status
E15: Invalid expression: 'error' == g:vundle_last_status
line   17:
E121: Undefined variable: g:vundle_last_status
E15: Invalid expression: 'updated' == g:vundle_last_status && empty(msg)

brunsgaard added a commit to brunsgaard/Vundle.vim that referenced this issue Jul 10, 2014
Due to the issue VundleVim#175,

Is there a reason not to put in the boilerplate vimrc?
@ahti
Copy link

ahti commented Oct 21, 2014

@gmarik I just ran into this as well. Wouldn't this be pretty easy to fix by wrapping all shell invocations in a /bin/sh -c 'foo'?

The solution of setting the shell in .vimrc works, but makes :sh run bash as well, where I'd rather use fish.

@jdevera
Copy link
Contributor

jdevera commented Oct 22, 2014

@ahti that would unfortunately not fly on windows.

maljub01 added a commit to maljub01/dotfiles that referenced this issue Jan 15, 2015
@mascip
Copy link

mascip commented Feb 16, 2015

set shell=/bin/bash fixed it for me too, in ArchLinux. Thank you!

@dopatraman
Copy link

Many thanks for this.

@jueqingsizhe66
Copy link

My Windows10 Solution:
put the git in the path environment

and add "set shell=git" in the vimrc

ok. Everything works fine.

@YaoXuanZhi
Copy link

2333, this plug-in relies on git, so make sure that you can find git in system environment variables.

@arwildo
Copy link

arwildo commented Nov 3, 2019

If you're using Windows, delete the set shell=powershell, it only works at cmd terminal

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