MarcWeber / vim-addon-manager

manage and install vim plugins (including their dependencies) in a sane way. If you have any trouble contact me. Usually I reply within 24 hours
Other
660 stars 59 forks source link

Errors when updating plugins #91

Closed coot closed 11 years ago

coot commented 11 years ago

I got the following errors when I tried to update my plugins today (by calling vam#install#Update(g:addons)):

Considering vim-addon-manager-known-repositories for update cd '/home/coot/.vim/vam-addons/vim-addon-manager-known-repositories' && git pull Already up-to-date.

Error detected while processing function vam#install#Update..vam#install#LoadPool..vam#install#Pool..vam#install#LoadKnownRepos: line 3: E716: Key not present in Dictionary: activated_plugins E116: Invalid arguments for function get(s:c['activated_plugins'], known, 0) E15: Invalid expression: 0 == get(s:c['activated_plugins'], known, 0) Error detected while processing function vam#install#Update..vam#install#LoadPool..vam#install#Pool: line 2: E117: Unknown function: vam_known_repositories#Pool E15: Invalid expression: vam_known_repositories#Pool() Considering BufClose for update Error detected while processing function vam#install#Update..vam#install#UpdateAddon: line 25: E712: Argument of get() must be a List or Dictionary Don't know how to update BufClose because it is not contained in plugin_sources Considering CSApprox for update cd '/home/coot/.vim/vam-addons/CSApprox' && git pull Already up-to-date.

Considering ColorV for update cd '/home/coot/.vim/vam-addons/ColorV' && git pull Already up-to-date.

Considering Comceal for update E712: Argument of get() must be a List or Dictionary Don't know how to update Comceal because it is not contained in plugin_sources Considering Conque_Shell for update svn update '/home/coot/.vim/vam-addons/Conque_Shell' At revision 496.

Considering CountJump for update E712: Argument of get() must be a List or Dictionary Don't know how to update CountJump because it is not contained in plugin_sources Considering EasyColor for update cd '/home/coot/.vim/vam-addons/EasyColor' && git pull Already up-to-date.

Considering FindFile for update E712: Argument of get() must be a List or Dictionary Don't know how to update FindFile because it is not contained in plugin_sources Considering GUI_Box for update bzr pull -d '/home/coot/.vim/vam-addons/GUI_Box' Using saved parent location: bzr+ssh://bazaar.launchpad.net/%2Bbranch/vim-gui-box/ No revisions or tags to pull.

Considering Gummybears for update cd '/home/coot/.vim/vam-addons/Gummybears' && git pull Already up-to-date.

Considering Gundo for update hg pull -u -R '/home/coot/.vim/vam-addons/Gundo' pulling from https://bitbucket.org/sjl/gundo.vim searching for changes no changes found

Considering HTML_AutoCloseTag for update E712: Argument of get() must be a List or Dictionary Don't know how to update HTML_AutoCloseTag because it is not contained in plugin_sources Considering JavaScript_syntax for update E712: Argument of get() must be a List or Dictionary Don't know how to update JavaScript_syntax because it is not contained in plugin_sources Considering LanguageTool for update E712: Argument of get() must be a List or Dictionary Don't know how to update LanguageTool because it is not contained in plugin_sources Considering ManPageView for update E712: Argument of get() must be a List or Dictionary Don't know how to update ManPageView because it is not contained in plugin_sources Considering PushPop for update E712: Argument of get() must be a List or Dictionary Don't know how to update PushPop because it is not contained in plugin_sources Considering PyInteractive for update hg pull -u -R '/home/coot/.vim/vam-addons/PyInteractive' pulling from https://vim-pyinteractive-plugin.googlecode.com/hg/ searching for changes no changes found

Considering Python_2.x_Standard_Library_Reference for update E712: Argument of get() must be a List or Dictionary Don't know how to update Python_2.x_Standard_Library_Reference because it is not contained in plugin_sources Considering Python_3.x_Standard_Library_Reference for update E712: Argument of get() must be a List or Dictionary Don't know how to update Python_3.x_Standard_Library_Reference because it is not contained in plugin_sources Considering Python_Documentation for update E712: Argument of get() must be a List or Dictionary Don't know how to update Python_Documentation because it is not contained in plugin_sources Considering RemoveFile for update E712: Argument of get() must be a List or Dictionary Don't know how to update RemoveFile because it is not contained in plugin_sources Considering Rename%1928 for update E712: Argument of get() must be a List or Dictionary Don't know how to update Rename%1928 because it is not contained in plugin_sources Considering SimpylFold for update cd '/home/coot/.vim/vam-addons/SimpylFold' && git pull Already up-to-date.

Considering SpellCheck for update E712: Argument of get() must be a List or Dictionary Don't know how to update SpellCheck because it is not contained in plugin_sources Considering SudoEdit for update cd '/home/coot/.vim/vam-addons/SudoEdit' && git pull Already up-to-date.

Considering TTCoach for update E712: Argument of get() must be a List or Dictionary Don't know how to update TTCoach because it is not contained in plugin_sources Considering TaskList for update E712: Argument of get() must be a List or Dictionary Don't know how to update TaskList because it is not contained in plugin_sources Considering The_NERD_Commenter for update cd '/home/coot/.vim/vam-addons/The_NERD_Commenter' && git pull Already up-to-date.

Considering The_NERD_tree for update cd '/home/coot/.vim/vam-addons/The_NERD_tree' && git pull Already up-to-date.

Considering Unicode_RST_Tables for update E712: Argument of get() must be a List or Dictionary Don't know how to update Unicode_RST_Tables because it is not contained in plugin_sources Considering VimOrganizer for update cd '/home/coot/.vim/vam-addons/VimOrganizer' && git pull Already up-to-date.

Considering YankRing for update E712: Argument of get() must be a List or Dictionary Don't know how to update YankRing because it is not contained in plugin_sources Considering ZoomWin for update E712: Argument of get() must be a List or Dictionary Don't know how to update ZoomWin because it is not contained in plugin_sources Considering buttercream for update E712: Argument of get() must be a List or Dictionary Don't know how to update buttercream because it is not contained in plugin_sources Considering calendar%52 for update cd '/home/coot/.vim/vam-addons/calendar%52' && git pull Already up-to-date.

Considering cmdalias for update E712: Argument of get() must be a List or Dictionary Don't know how to update cmdalias because it is not contained in plugin_sources Considering ctags%610 for update E712: Argument of get() must be a List or Dictionary Don't know how to update ctags%610 because it is not contained in plugin_sources Considering diff_movement for update E712: Argument of get() must be a List or Dictionary Don't know how to update diff_movement because it is not contained in plugin_sources Considering fatrat for update E712: Argument of get() must be a List or Dictionary Don't know how to update fatrat because it is not contained in plugin_sources Considering fugitive for update cd '/home/coot/.vim/vam-addons/fugitive' && git pull Already up-to-date.

Considering genutils for update E712: Argument of get() must be a List or Dictionary Don't know how to update genutils because it is not contained in plugin_sources Considering grep for update E712: Argument of get() must be a List or Dictionary Don't know how to update grep because it is not contained in plugin_sources Considering karma for update E712: Argument of get() must be a List or Dictionary Don't know how to update karma because it is not contained in plugin_sources Considering lastchange3350 for update E712: Argument of get() must be a List or Dictionary Don't know how to update lastchange3350 because it is not contained in plugin_sources Considering math for update E712: Argument of get() must be a List or Dictionary Don't know how to update math because it is not contained in plugin_sources Considering oceanlight for update E712: Argument of get() must be a List or Dictionary Don't know how to update oceanlight because it is not contained in plugin_sources Considering progressbar_widget for update E712: Argument of get() must be a List or Dictionary Don't know how to update progressbar_widget because it is not contained in plugin_sources Considering pysource for update E712: Argument of get() must be a List or Dictionary Don't know how to update pysource because it is not contained in plugin_sources Considering python%30 for update E712: Argument of get() must be a List or Dictionary Don't know how to update python%30 because it is not contained in plugin_sources Considering python_match for update E712: Argument of get() must be a List or Dictionary Don't know how to update python_match because it is not contained in plugin_sources Considering recover for update cd '/home/coot/.vim/vam-addons/recover' && git pull Already up-to-date.

Considering sessionman for update E712: Argument of get() must be a List or Dictionary Don't know how to update sessionman because it is not contained in plugin_sources Considering showmarks for update E712: Argument of get() must be a List or Dictionary Don't know how to update showmarks because it is not contained in plugin_sources Considering speeddating for update cd '/home/coot/.vim/vam-addons/speeddating' && git pull Already up-to-date.

Considering startup_profile for update cd '/home/coot/.vim/vam-addons/startup_profile' && git pull Already up-to-date.

Considering taglist for update E712: Argument of get() must be a List or Dictionary Don't know how to update taglist because it is not contained in plugin_sources Considering tlib for update cd '/home/coot/.vim/vam-addons/tlib' && git pull Already up-to-date.

Considering utl for update E712: Argument of get() must be a List or Dictionary Don't know how to update utl because it is not contained in plugin_sources Considering vcscommand for update cd '/home/coot/.vim/vam-addons/vcscommand' && git pull Already up-to-date.

Considering vim-addon-async for update cd '/home/coot/.vim/vam-addons/vim-addon-async' && git pull Already up-to-date.

Considering vim-addon-completion for update cd '/home/coot/.vim/vam-addons/vim-addon-completion' && git pull Already up-to-date.

Considering vim-addon-goto-thing-at-cursor for update cd '/home/coot/.vim/vam-addons/vim-addon-goto-thing-at-cursor' && git pull Already up-to-date.

Considering vim-addon-mw-utils for update cd '/home/coot/.vim/vam-addons/vim-addon-mw-utils' && git pull Already up-to-date.

Considering vim-addon-signs for update cd '/home/coot/.vim/vam-addons/vim-addon-signs' && git pull Already up-to-date.

Considering vim-dev-plugin for update cd '/home/coot/.vim/vam-addons/vim-dev-plugin' && git pull Already up-to-date.

Considering vim-indent-object for update cd '/home/coot/.vim/vam-addons/vim-indent-object' && git pull Already up-to-date.

Considering vim-ipython for update cd '/home/coot/.vim/vam-addons/vim-ipython' && git pull Already up-to-date.

Considering vimwiki for update hg pull -u -R '/home/coot/.vim/vam-addons/vimwiki' pulling from https://code.google.com/p/vimwiki searching for changes no changes found

Considering xorium for update E712: Argument of get() must be a List or Dictionary Don't know how to update xorium because it is not contained in plugin_sources Considering xterm-color-table for update cd '/home/coot/.vim/vam-addons/xterm-color-table' && git pull Already up-to-date.

Considering ywtxt for update E712: Argument of get() must be a List or Dictionary Don't know how to update ywtxt because it is not contained in plugin_sources Considering vimchat for update svn update '/home/coot/.vim/vam-addons/vimchat' At revision 142.

Considering vimtips for update E712: Argument of get() must be a List or Dictionary Don't know how to update vimtips because it is not contained in plugin_sources Already up to date: ['CSApprox', 'ColorV', 'Conque_Shell', 'EasyColor', 'GUI_Box', 'Gummybears', 'Gundo', 'PyInteractive', 'SimpylFold', 'SudoEdit', 'The_NERD_Commenter', 'The_NERD_tree', 'VimOrganizer', 'calendar%52', 'fugitive', 'recover', 'speeddating', 'startup_profile', 'tlib', 'vcscommand', 'vim-addon-async', 'vim-addon-completion', 'vim-addon-goto-thing-at-cursor', 'vim-addon-mw-utils', 'vim-addon-signs', 'vim-dev-plugin', 'vim-indent-object', 'vim-ipython', 'vimwiki', 'xterm-color-table', 'vimchat']. Failed to update: ['BufClose', 'Comceal', 'CountJump', 'FindFile', 'HTML_AutoCloseTag', 'JavaScript_syntax', 'LanguageTool', 'ManPageView', 'PushPop', 'Python_2.x_Standard_Library_Reference', 'Python_3.x_Standard_Library_Reference', 'Python_Documentation', 'RemoveFile', 'Rename%1928', 'SpellCheck', 'TTCoach', 'TaskList', 'Unicode_RST_Tables', 'YankRing', 'ZoomWin', 'buttercream', 'cmdalias', 'ctags%610', 'diff_movement', 'fatrat', 'genutils', 'grep', 'karma', 'lastchange3350', 'math', 'oceanlight', 'progressbar_widget', 'pysource', 'python%30', 'python_match', 'sessionman', 'showmarks', 'taglist', 'utl', 'xorium', 'ywtxt', 'vimtips']. :redir END

ZyX-I commented 11 years ago

Do you have any code in your vimrc that changes g:vim_addon_manage after calling ActivateAddons?

coot commented 11 years ago

On 05:38 Wed 31 Oct , ZyX-I wrote:

Do you have any code in your vimrc that changes g:vim_addon_manage after calling ActivateAddons?


Reply to this email directly or view it on GitHub: https://github.com/MarcWeber/vim-addon-manager/issues/91#issuecomment-9943041

Dear ZyX,

No, I do not. My configuration looks like this:

let g:vim_addon_manager = { 'plugin_root_dir' : vam_install_path, 'shell_commands_run_method' : 'system' } let g:addons = ... a list of my addons call vam#ActivateAddons(g:addons, {'auto_install' : 0}) let extend(g:addons, ...) " Add some addons that I want to update by I don't wont to run.

Best regards, Marcin Szamotulski

MarcWeber commented 11 years ago

Your case is very strange. That activated_plugins is not set means that autoload/vam.vim was not loaded because that initializes that key to {}. I don't understand what is happening because vam/install.vim calls vam#DefineAndBind( which should load that file thus cause that key to exist.

call vam#ActivateAddons before calling any install# functions (passing an empty list) - otherwise a lot of configuration setting won't be set.

Can you add some traces finding out where g:vim_addon_manager['activated_plugins'] is not set?

Please also talk about which operating system you're using. If its linux I can offer you uploading your setup to my server so that we can debug it.

ZyX-I commented 11 years ago

@coot What errors do you get if you put lockvar! g:vim_addon_manager just after calling vam#ActivateAddons? (It is much likely you will see no until you call UpdateAddons, but you must see a plenty of them when you try to update.)

coot commented 11 years ago

On 10:10 Wed 31 Oct , ZyX-I wrote:

@coot What errors do you get if you put lockvar! g:vim_addon_manager just after calling vam#ActivateAddons? (It is much likely you will see no until you call UpdateAddons, but you must see a plenty of them when you try to update.)


Reply to this email directly or view it on GitHub: https://github.com/MarcWeber/vim-addon-manager/issues/91#issuecomment-9953251

The issue is gone. Maybe I did something special with that vim session. I am not sure now.

Best regards, Marcin