These are chat archives for Shougo/dein.vim

20th
Apr 2017
Tobias Witt
@ohcibi
Apr 20 2017 09:06
@Shougo whenever I do recache_runtimepath after update. I get Error deleting directory: ~/.vim/dein/.cache/.vimrc/temp/XXXX. is this this issue: Shougo/dein.vim#107 or another? I looked into the related issue for vim but there it says the problem is with filenames that contain brackets; so I'm not sure if this is actually the same as the problematic path on my machine doesn't contain them
i can work around this by deleting ~/.vim/dein/.cache
Shougo
@Shougo
Apr 20 2017 09:14
Please upload the error messages.
I will check it.
Unfortunately, current delete() implementation is broken.
Tobias Witt
@ohcibi
Apr 20 2017 09:15
@Shougo hold on.....need to update xcode to reinstall vim, whichs installation is now broken by homebrew 8-/
Shougo
@Shougo
Apr 20 2017 09:15
I may add if_python remove implementation for the problem.
Tobias Witt
@ohcibi
Apr 20 2017 09:16
hm interestingly with nvim dein doesn't work at all oO
Shougo
@Shougo
Apr 20 2017 09:16
Oh
Tobias Witt
@ohcibi
Apr 20 2017 09:17
oh wait.. i misread the errors (i'm constantly confusing denite with dein)... dein does not work in the way that y plugins are not loaded, which I can see by error messages from denite's configuration
Shougo
@Shougo
Apr 20 2017 09:18
Um?
Tobias Witt
@ohcibi
Apr 20 2017 09:19
@Shougo https://gist.github.com/ohcibi/846e0934f08bdb297164d8db03712ef5 this is the minimal vimrc. there is no Denite commmand
Shougo
@Shougo
Apr 20 2017 09:20
call dein#recache_runtimepath() does not work?
It should be executed after install.
Tobias Witt
@ohcibi
Apr 20 2017 09:27
@Shougo well the error is Error deleting directory: ~/.vim/dein/.cache/.vimrc/temp/XXXXwhere XXXX is some random number. If I delete the cache directory the command executes without that error even if execute it subsequently
Shougo
@Shougo
Apr 20 2017 09:28
I don't know why...
But you can remove the directory from Vim?
Tobias Witt
@ohcibi
Apr 20 2017 09:28
@Shougo you mean with :delete?
lemme try that when vim is reinstalled.... by the way: the dein-nvim-issue seems to be solved by recaching the runtime path; seems that the cache from vim is incompatible with nvim and vice versa
from nvim i do :call delete("~/.vim/dein/.cache", "rf") which throws no error but the directory is not deleted afterwards?
or is it immediately recreated?
Shougo
@Shougo
Apr 20 2017 09:33
It is not recreated until if you call dein#recache_runtimepath().
Tobias Witt
@ohcibi
Apr 20 2017 09:35
is :call delete("~/.vim/dein/.cache", "rf") the right way to call it?
Shougo
@Shougo
Apr 20 2017 09:35
Yes
Please check delete() result value.
Tobias Witt
@ohcibi
Apr 20 2017 09:36
how do I do that?
Shougo
@Shougo
Apr 20 2017 09:36
It should be :echo instead of :call
Tobias Witt
@ohcibi
Apr 20 2017 09:36
I used /Users/ohcibi/ instead of ~ and now I got 'Invalid rangeas error (nothing more, even with:messages`) and the directorie's contents are gone
Shougo
@Shougo
Apr 20 2017 09:37
Hm.
Tobias Witt
@ohcibi
Apr 20 2017 09:37
echo with /Users/ohcibi is 0 but it says Invalid range two times
Shougo
@Shougo
Apr 20 2017 09:37
delete() is broken. OK.
Tobias Witt
@ohcibi
Apr 20 2017 09:37
with ~ I get -1 so tilde expansion seems not to work
Shougo
@Shougo
Apr 20 2017 09:39
OK
Tobias Witt
@ohcibi
Apr 20 2017 09:44
vim is rebuilt now, echo delete(...... says Invalid range 4 times now, the return value is 0 but the directory is not touched (I believe the changes I noticed before were simply because I've closed nvim once)
Shougo
@Shougo
Apr 20 2017 09:45
I will add if_python remove feature in dein.
It should be.
/s/if_python/if_python3/
if_python is deprecated :0
Shougo
@Shougo
Apr 20 2017 09:49
I will comment out delete('rf') support.
The fallback is already implemented.
Tobias Witt
@ohcibi
Apr 20 2017 09:53
:thumbsup:
Shougo
@Shougo
Apr 20 2017 09:53
delete('rf') is broken. Huh
Tobias Witt
@ohcibi
Apr 20 2017 09:59
@Shougo the neocomplete error in my gist has happened the first time during this upgrade actually.. is there something broken with neocomplete?
Shougo
@Shougo
Apr 20 2017 09:59
I think neocomplete is not installed properly.
plugin/neocomplete.vim is installed, but autoload/neocomplete/* is not.
Tobias Witt
@ohcibi
Apr 20 2017 10:01
hm... it got installed by dein
Shougo
@Shougo
Apr 20 2017 10:02
You should check dein cache directory.
Tobias Witt
@ohcibi
Apr 20 2017 10:10
@Shougo i've deleted that multiple times 8-)
Shougo
@Shougo
Apr 20 2017 10:11
So, you should check it :-)
Tobias Witt
@ohcibi
Apr 20 2017 10:13
@Shougo what should I actually check? I don't know how dein installs plugins, so I wouldn't see how its installed unproperly?
plus I wouldn't knew how to fix that as I don't know what I can do else except from dein#add to add a plugin "properly"
I cannot reproduce it anyway as it's gone after the upgrade, so it looks indeed like an issue of neocomplete that got solved by either upgrading it or by recaching
Shougo
@Shougo
Apr 20 2017 10:14
You can check it by ~/.vim/dein/.cache/.vimrc/.dein/autoload directory.
I cannot reproduce it anyway as it's gone after the upgrade, so it looks indeed like an issue of neocomplete that got solved by either upgrading it or by recaching
OK. I think so, too
Tobias Witt
@ohcibi
Apr 20 2017 10:16
pity that I still can't use nvim as it randomly segfaults (mostly when I Denite file_rec)
Shougo
@Shougo
Apr 20 2017 10:16
This is neovim problem.
Tobias Witt
@ohcibi
Apr 20 2017 10:17
yea
Shougo
@Shougo
Apr 20 2017 10:17
Please report it in neovim issues.
I cannot fix neovim SEGV
Using plugins.
Tobias Witt
@ohcibi
Apr 20 2017 10:17
i didnt ask you to... but I cannot report an issue as I cannot reproduce it with a minimal vimrc
Shougo
@Shougo
Apr 20 2017 10:18
I think the stacktrace and the additional information are needed.
Tobias Witt
@ohcibi
Apr 20 2017 10:18
so its definitly caused by some plugin.. when I use the minimalvimrc I pasted above, denite works without a problem, so there is no issue I can report
yea but the issue will be closed as I cannot provide the minimalvimrc 8-)
Shougo
@Shougo
Apr 20 2017 10:18
You can create minimal vimrc denite.nvim + another plugin or configurations.
Tobias Witt
@ohcibi
Apr 20 2017 10:19
the issue policiy is to strict
Shougo
@Shougo
Apr 20 2017 10:20
I can check your minimal vimrc.
I have read many minimal vimrcs.
No plugins vimrc is the best. But few plugins and the minimal plugins are better.
s/minimal plugins/minimal configurations/
If you create it, I can check and test.
Tobias Witt
@ohcibi
Apr 20 2017 10:22
@Shougo I added all of my plugins to this minimalvimrc now and I still cannot reproduce it... so it must be either one of the results or something other in my vimrc
Shougo
@Shougo
Apr 20 2017 10:23
So it seems from configurations.
Tobias Witt
@ohcibi
Apr 20 2017 10:23
@Shougo i need to go to lunch now... the minimal vimrc is pasted above, but as I said: it works for me with this. my actual vimrc is here: https://github.com/ohcibi/prezto/blob/ohcibi/runcoms/vimrc maybe there is something you see on first sight.. i'll investigate this further later on
Shougo
@Shougo
Apr 20 2017 10:24
Hm.
Your vimrc is not so long.
The investigation seems easy.
Tobias Witt
@ohcibi
Apr 20 2017 10:25
@Shougo the complete config (including bundlrc and stuff) is in this repo in the ohcibi branch
if you need to see something else than the vimrc
i'll also try to bisect that file after lunch
Shougo
@Shougo
Apr 20 2017 10:26
Bisecting is needed...
less than 50 lines are better.
Tobias Witt
@ohcibi
Apr 20 2017 11:57
@Shougo it must be the results
of the file_rec
if I change the directory, there is no segfault
Shougo
@Shougo
Apr 20 2017 12:05
Hm.