Closed ahluntang closed 10 years ago
Excerpts from Ah-Lun Tang's message of Wed Jul 31 08:38:39 +0000 2013:
After the repository has been downloaded, it tries to open:
~/.vim/vim-addons/indentLine/indentLine.vim
while that file is on:~/.vim/vim-addons/indentLine/after/plugin/indentLine.vim
Doesn't make sense to me.
on linux with git in PATH I get theese installed files:
./.git* ./README.md ./after ./after/plugin ./after/plugin/indentLine.vim ./doc ./doc/indentLine.txt ./doc/tags ./addon-info.json
If in doubt move that plugin dir somewhere else and try again?
Make sure you have latest VAM/VAM-kr ?
Yes, I'm getting those files as well, but then something in vam tries to copy the file ./indentLine.vim while it is in ./after/plugin/indentLine.vim
I pulled last commits from ~/.vim/vim-addons/vim-addon-manager
and ~/.vim/vim-addons/vim-addon-manager-known-repositories
I was installing it using following line in .vimrc:
call vam#ActivateAddons(['powerline','AutoComplPop','L9', 'The_NERD_tree', 'indentLine'], {'auto_install' : 0})
(the other plugins already installed fine)
As normally, it asked to install the indentLine plugin:
Plugin: indentLine
Script number: 4354
Vim.org page: http://www.vim.org/scripts/script.php?script_id=4354
Home page: https://github.com/Yggdroot/indentLine
Source URL: git://github.com/Yggdroot/indentLine (type git)
addon-info: {'post-scms-update-hook': 'call vam#utils#CopyFile(%d.''/indentLine.vim'', %d.''/plugin/indentLine.vim'')', 'post-install-hook': 'call mkdir(%d.''/plugin'') | call vam#utils#CopyFile(%d.''/indentLine.vim'', %d.''/plugin/indentLine.vim'')'}
Target: /Users/ahluntang/.vim/vim-addons/indentLine
git clone --recursive --depth 1 'git://github.com/Yggdroot/indentLine' '/Users/ahluntang/.vim/vim-addons/indentLine'
:!git clone --recursive --depth 1 'git://github.com/Yggdroot/indentLine' '/Users/ahluntang/.vim/vim-addons/indentLine'
Cloning into '/Users/ahluntang/.vim/vim-addons/indentLine'...
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 15 (delta 2), reused 9 (delta 1)
Receiving objects: 100% (15/15), 5.87 KiB, done.
Resolving deltas: 100% (2/2), done.
After that, I'm pressing return to continue and then I get that error message:
Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively..vam#install#Install..vam#install#RunHook..va
m#utils#CopyFile:
line 1:
E484: Can't open file /Users/ahluntang/.vim/vim-addons/indentLine/indentLine.vim
Press ENTER or type command to continue
Why couldn't I reproduce it? I used :InstallAddons which doesn't run hooks.
VAM-kr contains
" Yggdroot Chen
let scmnr.4354 = vamkr#AddCopyHook({'type': 'git', 'url': 'git://github.com/Yggdroot/indentLine'}, {'indentLine.vim': 'plugin'})
in db/scmsources.vim
now after/plugin conains the .vim file which should be sourced if you activate by VAM.
So I guess the correct fix is to just remove the hook. Let me know if I'm still wrong
The error is gone now.
After the repository has been downloaded, it tries to open:
~/.vim/vim-addons/indentLine/indentLine.vim
while that file is on:~/.vim/vim-addons/indentLine/after/plugin/indentLine.vim