Closed valerino closed 6 years ago
Error detected while processing function minpac#update: line 2: E119: Not enough arguments for function: minpac#impl#update
It looks that you have some copies of minpac. Recently I changed the interface between plugin/minpac.vim
and autoload/minpac/impl.vim
. If only autoload/minpac/impl.vim
is updated, that can be happen.
Could you check the followings?
Make sure minpac is up to date
Open a shell, then cd ~/.vim/pack/minpac/opt/minpac/
, and git pull
Check if minpac is correctly loaded
Please check the result of :scriptnames
.
If you want to save the result in a buffer, try this:
Open a buffer, goto Insert mode, type Ctrl-RCtrl-O=execute('scriptnames')
EnterEsc.
Here is my example:
2: ~/.vim/pack/minpac/opt/minpac/plugin/minpac.vim
...
45: ~/.vim/pack/minpac/opt/minpac/autoload/minpac/impl.vim
46: ~/.vim/pack/minpac/opt/minpac/autoload/minpac/job.vim
plugin/minpac.vim
and autoload/minpac/impl.vim
should be loaded from ~/.vim/pack/minpac/opt/minpac/
.
heya, thanks for the reply!
- Make sure minpac is up to date
❯ cd ~/.vim/pack/minpac/opt/minpac
~/.vim/pack/minpac/opt/minpac master ❯ git pull Already up to date.
> 2. Check if minpac is correctly loaded
1: /usr/share/vim/vimrc 2: /usr/share/vim/vim80/debian.vim 3: /usr/share/vim/vim80/syntax/syntax.vim 4: /usr/share/vim/vim80/syntax/synload.vim 5: /usr/share/vim/vim80/syntax/syncolor.vim 6: /usr/share/vim/vim80/filetype.vim 7: ~/.vimrc 8: ~/.vim/pack/minpac/opt/minpac/plugin/minpac.vim 9: ~/.vim/pack/plugins/opt/minpac/plugin/minpac.vim 10: ~/.vim/pack/minpac/start/vim/colors/dracula.vim 11: /usr/share/vim/vim80/ftplugin.vim 12: /usr/share/vim/vim80/plugin/getscriptPlugin.vim 13: /usr/share/vim/vim80/plugin/gzip.vim 14: /usr/share/vim/vim80/plugin/logiPat.vim 15: /usr/share/vim/vim80/plugin/manpager.vim 16: /usr/share/vim/vim80/plugin/matchparen.vim 17: /usr/share/vim/vim80/plugin/netrwPlugin.vim 18: /usr/share/vim/vim80/plugin/rrhelper.vim 19: /usr/share/vim/vim80/plugin/spellfile.vim 20: /usr/share/vim/vim80/plugin/tarPlugin.vim 21: /usr/share/vim/vim80/plugin/tohtml.vim 22: /usr/share/vim/vim80/plugin/vimballPlugin.vim 23: /usr/share/vim/vim80/plugin/zipPlugin.vim 24: ~/.vim/pack/minpac/start/ale/plugin/ale.vim 25: ~/.vim/pack/minpac/start/ale/autoload/ale/events.vim 26: ~/.vim/pack/minpac/start/auto-pairs/plugin/auto-pairs.vim 27: ~/.vim/pack/minpac/start/caw.vim/plugin/caw.vim 28: ~/.vim/pack/minpac/start/completor.vim/plugin/completor.vim 29: ~/.vim/pack/minpac/start/ctrlp.vim/plugin/ctrlp.vim 30: ~/.vim/pack/minpac/start/ctrlp.vim/autoload/ctrlp/mrufiles.vim 31: ~/.vim/pack/minpac/start/lightline.vim/plugin/lightline.vim 32: ~/.vim/pack/minpac/start/nclipper.vim/plugin/nclipper.vim 33: ~/.vim/pack/minpac/start/nerdtree/plugin/NERD_tree.vim 34: ~/.vim/pack/minpac/start/nerdtree/autoload/nerdtree.vim 35: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/path.vim 36: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/menu_controller.vim 37: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/menu_item.vim 38: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/key_map.vim 39: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/bookmark.vim 40: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/tree_file_node.vim 41: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/tree_dir_node.vim 42: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/opener.vim 43: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/creator.vim 44: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/flag_set.vim 45: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/nerdtree.vim 46: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/ui.vim 47: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/event.vim 48: ~/.vim/pack/minpac/start/nerdtree/lib/nerdtree/notifier.vim 49: ~/.vim/pack/minpac/start/nerdtree/autoload/nerdtree/ui_glue.vim 50: ~/.vim/pack/minpac/start/nerdtree-git-plugin/nerdtree_plugin/git_status.vim 51: ~/.vim/pack/minpac/start/nerdtree/nerdtree_plugin/exec_menuitem.vim 52: ~/.vim/pack/minpac/start/nerdtree/nerdtree_plugin/fs_menu.vim 53: ~/.vim/pack/minpac/start/supertab/plugin/supertab.vim 54: ~/.vim/pack/minpac/start/tagbar/plugin/tagbar.vim 55: ~/.vim/pack/minpac/start/ultisnips/plugin/UltiSnips.vim 56: ~/.vim/pack/minpac/start/ultisnips/autoload/UltiSnips/map_keys.vim 57: ~/.vim/pack/minpac/start/ultisnips/ftdetect/snippets.vim 58: ~/.vim/pack/minpac/start/vim-autoformat/plugin/autoformat.vim 59: ~/.vim/pack/minpac/start/vim-autoformat/plugin/defaults.vim 60: ~/.vim/pack/minpac/start/vim-autoformat/plugin/utils.vim 61: ~/.vim/pack/minpac/start/vim-easyescape/plugin/easyescape.vim 62: ~/.vim/pack/minpac/start/vim-eunuch/plugin/eunuch.vim 63: ~/.vim/pack/minpac/start/vim-fugitive/plugin/fugitive.vim 64: ~/.vim/pack/minpac/start/vim-fugitive/ftdetect/fugitive.vim 65: ~/.vim/pack/minpac/start/vim-gitgutter/plugin/gitgutter.vim 66: ~/.vim/pack/minpac/start/vim-gitgutter/autoload/gitgutter/utility.vim 67: ~/.vim/pack/minpac/start/vim-gitgutter/autoload/gitgutter/highlight.vim 68: ~/.vim/pack/minpac/start/vim-go/plugin/go.vim 69: ~/.vim/pack/minpac/start/vim-go/autoload/go/config.vim 70: ~/.vim/pack/minpac/start/vim-go/ftdetect/gofiletype.vim 71: ~/.vim/pack/minpac/start/vim-gutentags/plugin/gutentags.vim 72: ~/.vim/pack/minpac/start/vim-markdown/ftdetect/markdown.vim 73: ~/.vim/pack/minpac/start/vim-multiple-cursors/plugin/multiple_cursors.vim 74: ~/.vim/pack/minpac/start/vim-sensible/plugin/sensible.vim 75: /usr/share/vim/vim80/indent.vim 76: /usr/share/vim/vim80/macros/matchit.vim 77: /usr/share/vim/vim80/pack/dist/opt/matchit/plugin/matchit.vim 78: ~/.vim/pack/minpac/start/vim-snippets/plugin/vimsnippets.vim 79: ~/.vim/pack/minpac/start/vim-startify/plugin/startify.vim 80: ~/.vim/pack/minpac/start/vim-surround/plugin/surround.vim 81: ~/.vim/pack/minpac/start/vim-vinegar/plugin/vinegar.vim 82: ~/.vim/pack/minpac/start/ultisnips/after/plugin/UltiSnips_after.vim 83: ~/.vim/pack/minpac/start/vim/after/plugin/dracula.vim 84: ~/.vim/pack/minpac/start/vim/autoload/dracula.vim 85: ~/.vim/pack/minpac/start/ale/autoload/ale.vim 86: ~/.vim/pack/minpac/start/lightline.vim/autoload/lightline.vim 87: ~/.vim/pack/minpac/start/vim-fugitive/autoload/fugitive.vim 88: ~/.vim/pack/minpac/start/lightline.vim/autoload/lightline/tab.vim 89: ~/.vim/pack/minpac/start/vim/autoload/lightline/colorscheme/Dracula.vim 90: ~/.vim/pack/minpac/start/lightline.vim/autoload/lightline/colorscheme.vim 91: ~/.vim/pack/minpac/start/vim-gitgutter/autoload/gitgutter.vim 92: ~/.vim/pack/minpac/start/vim-startify/autoload/startify.vim 93: ~/.vim/pack/minpac/start/vim-startify/autoload/startify/fortune.vim 94: ~/.vim/pack/minpac/start/vim-startify/syntax/startify.vim 95: ~/.vim/pack/minpac/start/ale/autoload/ale/util.vim 96: ~/.vim/pack/minpac/start/ale/autoload/ale/linter.vim 97: ~/.vim/pack/minpac/start/nerdtree/syntax/nerdtree.vim 98: ~/.vim/pack/minpac/start/vim-gutentags/autoload/gutentags.vim Press ENTER or type command to continue
EDIT:
indeed, that was the problem....
this was not updated: ~/.vim/pack/plugins/opt/minpac master
updating it fixes the issue.
but, seems i have 2 copies of minpac..... uhm.
8: ~/.vim/pack/minpac/opt/minpac/plugin/minpac.vim 9: ~/.vim/pack/plugins/opt/minpac/plugin/minpac.vim
I think the directory ~/.vim/pack/plugins/opt/minpac/
should be removed.
I think the directory ~/.vim/pack/plugins/opt/minpac/ should be removed.
indeed,that fixes it! thanks! closing!
hi, i stumbled into this today trying to update plugins:
same issue with clean:
i checked the _runtestupstream branch and its ok, seems to not present the issue. probably something in the latest commits, i haven't had the time to check.
Following the OS info (Ubuntu 18.04)
my .vimrc