-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 'Key not present in Dictionary: hook_source' issue #44
Conversation
@@ -358,14 +358,14 @@ function! dein#util#_call_hook(hook_name, ...) abort "{{{ | |||
let hook = 'hook_' . a:hook_name | |||
let plugins = filter(dein#util#_get_plugins((a:0 ? a:1 : [])), | |||
\ "v:val.sourced && (exists(prefix . v:val.name) | |||
\ || !empty(v:val[hook]))") | |||
\ || !empty(get(v:val, hook)))") | |||
|
|||
for plugin in dein#util#_tsort(plugins) | |||
let autocmd = 'dein#' . a:hook_name . '#' . plugin.name | |||
if exists('#User#'.autocmd) | |||
execute 'doautocmd User' autocmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, I suggest to add <nomodeline>
while dein.vim only support Vim 7.4 or later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is needed?
Please explain it.
I have not ESP skils.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is needed?
Please explain it.
I think you got already but in case, the reason is written in doautocmd section in Vim's help.
I cannot reproduce the problem. |
Ok. |
I got it. It is a problem of This is my guess but As I said, my dein.vim was in Now I remove cache and tried from the beginning. Everything works correctly. Sorry for take your time. |
OK. |
A commit 50b6e38 introduced a bug shown below. That happen every time when I tried to source lazy plugins.
This commit fix that issue.