Closed skeept closed 11 years ago
Can you please move your vim-addons directory somewhere else and try checking out everything from scratch the way its proposed using git? It works here. If it doesn't work then tell us about your .vimrc and operating system you're using.
I still haven't tried moving the addons to another location (I will try that once I have more time). What I tried at this point was changing vam#utils#RunShell just to see what would get printed. I changed it to: fun! vam#utils#RunShell(...) abort let special=(s:c.shell_commands_run_method[-4:] is# 'bang') let cmd = call('s:ShellDSL', [special]+a:000) echom 'command = ' . cmd let joined = join(a:000, '##') echom 'joined: ' . joined return s:Cmd(0, cmd) endfun
The output from the additional lines is: command = curl -L --max-redirs 40 -o '' 'http://www.vim.org/scripts/download_script.php?src_id=18845' joined: curl -L --max-redirs 40 -o $p $##/home/stu/skeept/.vim/bundle/SnippetCompleteSnipMate/archive/SnippetCompleteSnipMate-1.00.vmb.gz##http://www.vim.org/scripts/download_s cript.php?src_id=18845
So in my system some weird happens in the lines let special=(s:c.shell_commands_run_method[-4:] is# 'bang') let cmd = call('s:ShellDSL', [special]+a:000) they don't produce the right command to pass to the shell, although the right path is passed to the function.
My system is redhat linux but it also fails in cygwin windows and ubuntu (in a virtual machine). The options regarding shell are: shell=/usr/local/bin/bash shellcmdflag=-c shellpipe=2>&1| tee shellquote= shellredir=>%s 2>&1 shelltemp shellxquote= shellxescape=
My vimrc is in https://github.com/skeept/dotvim/blob/master/vimrc
See Fun2 sample here: https://github.com/c9s/vim-dev-plugin to learn about how to debug a function. This way you can trace both: the arguments and the command easily.
We don't have time to debug 1400 lines of .vimrc or track down errors.
Try a minimal .vimrc by copy pasting minimal recommended setup and see if you can reproduce the error. If you cannot reproduce the error then it may be any of vim's settings. save :options output to a file in both cases then and diff. This might give an idea about what is set differently.
OK,
I did the minimal setup, and I finally realized what the problem is: either with the empty minimal setup or my default vimrc if I place the addon to be activated directly in my vimrc the activation works.
But if I try to do it manually (after I start vim) with :ActivateAddon SnippetCompleteSnipMate
then it fails in both cases.
On Sat, Jan 19, 2013 at 8:13 PM, Marc Weber notifications@github.comwrote:
See Fun2 sample here: https://github.com/c9s/vim-dev-plugin to learn about how to debug a function. This way you can trace both: the arguments and the command easily.
We don't have time to debug 1400 lines of .vimrc or track down errors.
Try a minimal .vimrc by copy pasting minimal recommended setup and see if you can reproduce the error. If you cannot reproduce the error then it may be any of vim's settings. save :options output to a file in both cases then and diff. This might give an idea about what is set differently.
— Reply to this email directly or view it on GitHubhttps://github.com/MarcWeber/vim-addon-manager/issues/112#issuecomment-12464315.
Thus installing works fine when .vimrc is causing the install. It fails if you use :ActivateAddons at runtime? Is this the bug you encounter?
Yes,
both starting from the minimal setup or from my vimrc I have the issue I described when installing plugins from vim.org via :ActivateAddons after vim has started (plugins from github work fine)
On Sun, Jan 20, 2013 at 6:16 AM, Marc Weber notifications@github.comwrote:
Thus installing works fine when .vimrc is causing the install. It fails if you use :ActivateAddons at runtime? Is this the bug you encounter?
— Reply to this email directly or view it on GitHubhttps://github.com/MarcWeber/vim-addon-manager/issues/112#issuecomment-12469047.
Can you ping me on irc - we'll debug the issue then. I can't imagen that installation is different. Prepare SSH pub key you can send me. I'll grant you access to my testing server.
We've narrowed down the problem - so it should be fast then.
Marc Weber
I apologize but I am not very confortable with irc. I tried connecting using mibbit but there doesn't seem to be anybody in the channel, maybe I am not doing it right...
On Sun, Jan 20, 2013 at 3:03 PM, Marc Weber notifications@github.comwrote:
Can you ping me on irc - we'll debug the issue then. I can't imagen that installation is different. Prepare SSH pub key you can send me. I'll grant you access to my testing server.
We've narrowed down the problem - so it should be fast then.
Marc Weber
— Reply to this email directly or view it on GitHubhttps://github.com/MarcWeber/vim-addon-manager/issues/112#issuecomment-12476412.
You can use this interface: http://webchat.freenode.net/. For channels try #vim or type /join #vim (with that /) to enter the vim chatroom.
And this bug report is not primarly about that plugin, but about UltiSnips not supporting completion when completing snippet names. I'll fix UltiSnip instead. We've not been able to reproduce the bug on my SSH account. I don't care until there is a use case. skeept does not use Snipmate.
When trying to activate SnippetCompleteSnipMate I get the following errors:
Messages maintainer: Bram Moolenaar Bram@vim.org Plugin: SnippetCompleteSnipMate version 1.00 Script number: 4276 Vim.org page: http://www.vim.org/scripts/script.php?script_id=4276 Source URL: http://www.vim.org/scripts/download_script.php?src_id=18845 (type archive) addon-info: {'dependencies': {'SnippetComplete': {}, 'snipMate': {}}} archive_name: 'SnippetCompleteSnipMate-1.00.vmb.gz' Target: /home/stu/skeept/.vim/bundle/SnippetCompleteSnipMate Origin: archive http://www.vim.org/scripts/download_script.php?src_id=18845 curl -L --max-redirs 40 -o '' 'http://www.vim.org/scripts/download_script.php?src_id=18845' Error detected while processing function vam#ActivateAddons..vam#ActivateRecursively..vam#install#Install..vam
install#Checkout..vam#utils#Unpack..vam#utils#CopyFile:
line 1: E484: Can't open file /home/stu/skeept/.vim/bundle/SnippetCompleteSnipMate/archive/SnippetCompleteSnipMate-1. 00.vmb.gz gzip -d '/home/stu/skeept/.vim/bundle/SnippetCompleteSnipMate/archive/SnippetCompleteSnipMate-1.00.vmb.gz' _vimball_ Source this file to extract it! (:so %) Error detected while processing function vam#ActivateAddons..vam#ActivateRecursively..vam#install#Install..vam
install#Checkout..vam#utils#Unpack..vam#utils#Unpack..vimball#Vimball:
line 10: (Vimball) The current file does not appear to be a Vimball! Plugin: snipMate Script number: 2540 Vim.org page: http://www.vim.org/scripts/script.php?script_id=2540 Home page: https://github.com/MarcWeber/snipmate.vim Source URL: git://github.com/MarcWeber/snipmate.vim (type git) deprecated: 'snipMate is an alias to snipmate now - so use ''snipmate''' Target: /home/stu/skeept/.vim/bundle/snipMate Dependency chain: snipMate < SnippetCompleteSnipMate !> Deprecation warning package snipMate: snipMate is an alias to snipmate now - so use 'snipmate' Origin: git git://github.com/MarcWeber/snipmate.vim Plugin: snipMate Script number: 2540 Vim.org page: http://www.vim.org/scripts/script.php?script_id=2540 Home page: https://github.com/MarcWeber/snipmate.vim Source URL: git://github.com/MarcWeber/snipmate.vim (type git) deprecated: 'snipMate is an alias to snipmate now - so use ''snipmate''' Target: /home/stu/skeept/.vim/bundle/snipMate Dependency chain: snipMate < SnippetCompleteSnipMate !> Deprecation warning package snipMate: snipMate is an alias to snipmate now - so use 'snipmate' Origin: git git://github.com/MarcWeber/snipmate.vim Error detected while processing function vam#ActivateAddons: line 129: E605: Exception not caught: These plugins could not be activated for some reason: ['snipMate']
The first issue is the line: Origin: archive http://www.vim.org/scripts/download_script.php?src_id=18845 curl -L --max-redirs 40 -o '' 'http://www.vim.org/scripts/download_script.php?src_id=18845'
the -o option is followed by to ' not a " so it does not write the file anywhere.
The second issue is that I have an addon called snipmate. But this addon it not activated instead of SnipMate.
Any ideas of what I am doing wrong here?
Thanks!