Vundle.vim: VundleLog

Created on 28 Aug 2011  路  37Comments  路  Source: VundleVim/Vundle.vim

by @jdevera from #69:

I reduced my config to this:

set nocompatible
syntax on
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
filetype plugin indent on

Clean - Log - Install

I ran a BundleClean!, then hit l to see the log, then ran BundleInstall and got this:

Error detected while processing function vundle#installer#clean..vundle#scripts#view:
line   11:
E21: Cannot make changes, 'modifiable' is off

I ran BundleInstall and got no error.

Install - Log - Install

I ran BundleInstall, then hit l to see the log, then ran BundleInstall again:

Error detected while processing function vundle#installer#new..vundle#scripts#view:
line   11:
E21: Cannot make changes, 'modifiable' is off

Similar error, but not the same exactly.

Install - close - Install

Another way I can repro this is by opening any file in vim, e.g., my vimrc. then run BundleInstall and close the installer window when it's done. Then try to run BundleInstall again and bang!, there it is again.

Error detected while processing function vundle#installer#new..vundle#scripts#view:
line   11:
E21: Cannot make changes, 'modifiable' is off

List - Log - List

I run BundleList, then hit l to see the log (empty, as expected) and then run BundleList again, I get this:

Error detected while processing function vundle#installer#list..vundle#scripts#view:
line   11:
E21: Cannot make changes, 'modifiable' is off

Notes

There are probably more cases, sometimes the errors disappear very quickly, I'm using the :messages command to see them.

bug

All 37 comments

also desirables for VundleLog:

  • open in a split below
  • format output nicely
  • syntax highlight
  • change hotkey to CTRL-l (for those who use hjkl for navigation)

I also experience the E21: Cannot make changes, 'modifiable' is off annoyance. It may be related to a plugin, but I have not yet been able to track it down. The only plugin I know for sure that is incompatible with Vundle is DirDiff.vim.

I am getting the same errors. Is there a known workaround?

no workarounds so far.
but if you give me the urls to your .vimrcs i'll take a look into
Thanks!

AFAIK, set hidden can be used as a temporary workaround. If you are like me, and don't want to have this setting on all the time, you can set it only for the install session:

vim +'se hidden' +BundleInstall

Hey! I'm having this issue as well.

This is my vimrc https://github.com/franciscoj/dot-files/blob/master/gvimrc/vimrc Is there any kind of log I can provide for some more help?

Hey @franciscoj, thanks for reporting this.
If you could provide me with steps to reproduce the issue it would be good enough!
Thanks!

Hi!

It happens when I call :BundleInstall :BundleInstall! or :BundleClean, a new split buffer is opened at the left and I see the error message. I've discovered that I can make it work again if I call :set modifiable on this new buffer and call the vundle command again.

I'm facing this issue too. I can't installed or clean when got this error message.
The solution is by always deleting ~/.vim/view.

When i try with past version 0.8, there no problem and all things works perfectly!
I use Ubuntu Oneiric and test with same .vimrc on Vundle github example.

Any clue to solve this problem?
It's better to still hang on version 0.8 ?

@franciscoj thanks!

@yodiaditya, wow that's something new...

I'll look into it!
Thanks!

Hey guys if you could give me couple +1 on this fix - would be great!
Right now it's in VundleLog branch

  1. $ cd ~/.vim/bundle/vundle && git pull && git checkout -b VundleLog origin/VundleLog
  2. run vim and confirm you're not getting any errors after viewing :VundleLog
  3. if you do get errors - please comment here!

Sorry for taking so long to fix this!
Thanks yall!

It'll be pushed to master once I get couple +1s on this!
Thanks!

Got error after doing cd ~/.vim/bundle/vundle && git pull && git checkout -b origin/VundleLog VundleLog :

fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'VundleLog' which can not be resolved as commit?

Then i try with fresh clone from VundleLog by :
git clone -b VundleLog https://github.com/gmarik/vundle.git

It's great! BundleClean & BundleInstall work now.

But i still see this warning :
Error detected while processing function vundle view ... Changing a read-only file

For me it works. I can do :BundleInstall! or :BundleClean without any problem. After doing it, :VundleLog works without errors.

I checked all the cases I reported and all is good now. +1

@yodiaditya, sorry there's an error!
Change
$ cd ~/.vim/bundle/vundle && git pull && git checkout -b origin/VundleLog VundleLog
to
$ cd ~/.vim/bundle/vundle && git pull && git checkout -b VundleLog origin/VundleLog

Pushing to master then!
Thanks yall! )

I still get errors.

Error detected while processing function vundle#installer#list..vundle#script#view:
line 15: w10: Warning: Changing a readonly file

@sorin-ionescu could you please provide more details how do you hit error?
Along with Vundle SHA1 if possible.
Thanks!

I just executed :BundleList.
The SHA1 is 8122fb1a969ca89df5c79446f614056560375b63.

Did it already on master ? If yes, here are error screenshot that i and sorin got :

http://i.imgur.com/1UanO.png
http://i.imgur.com/Rm1cL.png

To solve, i delete any files inside view folder : rm -rf ~/.vim/view/*.

I think this error because vundle making some files in view and re-write again every action called (BundleInstall, BundleClean).

When doing first action it's triggered to create file and lock as read-only.
And on next action, it's need to write the file but error occured because it was read-only.

Just my thought

@yodiaditya, couple things:

  1. vundle doesn't create anything in ~/.vim/view/* atleast it shouldn't
  2. i bet you have something like this:
au BufWinLeave *.c mkview
au BufWinEnter *.c silent loadview

cuz :h viewdir is ~/.vim/view by default on *nix

  1. screenshot isn't really helpfull, can I see your .vimrc ?

@sorin-ionescu, looks like I need your .vimrc looked at as well. Is that possible?
Thanks!

Sorry, here my .vimrc to attend your inquiries :
https://github.com/yodiaditya/vim-pydjango/blob/master/.vimrc

Damn right! I have that mkview & loadview !
So, after commenting like this :

" Folding
" auto save folding : http://princ3.wordpress.com/2007/01/26/automaticaly-save-foldings-in-vim/
" au BufWinLeave * silent! mkview
" au BufWinEnter * silent! loadview
autocmd BufWinLeave .* mkview
autocmd BufWinEnter .* silent loadview

And there no error & problem solved!
I should finding another solution to save folding in vim.

Thank gmarik, you save my day!

@yodiaditya

Not sure if that will work but you could try

autocmd BufWinLeave .* if &modifiable | mkview | endif 
autocmd BufWinEnter .* if &modifiable  | silent loadview | endif 

I also have mkview and loadview to save and load folds. I've tried the if/endif. It still happens. Since only Vundle is complaining about this, I presume it should take extra care when dealing with readonly buffers.

@gmarik
Your suggestion doesn't work in my VIM. Still can't save folding.
But finally, i have this works 100% on save folding and no problem with Vundle :

set viewoptions=folds                                                                                                                              
au BufWinLeave * silent! mkview                                                                                                                    
au BufWinEnter * silent! loadview

You should put this on wiki to avoid people post same issue :)

@yodiaditya That doesn't work for me.

If I :BundleList first followed by :BundleInstall!, I do not get that error, but if I :BundleInstall! directly, I do get it.

@sorin-ionescu
i have no problem with direct :BundleInstall!.

Could you post your .vimrc ?
Because we know that the problem come from mkview and loadview.

My vimrc is 1000 lines long. It's not easily readable. I have exactly what you have for mkview/loadview.

Fixed the mkview/loadview issue by creating a file ~/.vim/ftplugin/vundle.vim with the following contents:

" Do not save view for vundle windows
set viewoptions=

and running this command once to clean the views up:

:!rm -rf ~/.vim/view/*

@padde Does not work on windows. If I manually empty view dir, the commands works for the first time, but still creates a view file. Second time I still get the error

@tairun make sure to close vim before emptying the view dir

@padde Still not working. Mind having a look at my vimrc? Its a pretty fresh one.
https://github.com/tairun/dotfiles/blob/master/vim/vimrc.win

Not sure why this issue is closed. I had the issue too until I removed mkview/loadview. Here's what my vimrc looked like when I was getting the errors: https://github.com/daturkel/vim-config/blob/22282d0f23e9772ce28003807c19da450a8c655e/.vimrc

I removed lines 137-138 to fix it.

I have to disable my dvorak remapping to get bundle install to work.

Error detected while processing function vundle#installer#new..23_process:
line 11:
E21: Cannot make changes, 'modifiable' is off

Here's my remap:
set langmap='q,\,w,.e,pr,yt,fy,gu,ci,ro,lp,/[,=],aa,os,ed,uf,ig,dh,hj,tk,nl,s\;,-',\;z,qx,jc,kv,xb,bn,mm,w\,,v.,z/,[-,]=,\"Q, ,MM,W<,V>,Z?

Was this page helpful?
0 / 5 - 0 ratings