Shougo / unite.vim

:dragon: Unite and create user interfaces
http://www.vim.org/scripts/script.php?script_id=3396
Other
2.85k stars 223 forks source link

Vim(let):E716: Key not present in Dictionary: source__directory, ':p')) #282

Closed altunyurt closed 11 years ago

altunyurt commented 11 years ago

I'm using vim 7.3.1287 with freshly cloned unite.vim (rev d8f5a71)

I've copied the following lines from help document to my vimrc:

nnoremap <leader>m :<C-u>Unite file_mru<CR>
nnoremap <leader>f :<C-u>Unite -start-insert file<CR>
call unite#filters#matcher_default#use(['matcher_fuzzy'])
call unite#filters#sorter_default#use(['sorter_rank'])
nnoremap <leader>r :<C-u>Unite -start-insert file_rec/async:!<CR>

<leader>r gives me the following errors and leaves me with a red input prompt in an empty buffer (window), no file name listed by default. typing in returns nothing. <leader>f seems to work.

function 56_call_unite_empty..unite#start..unite#start#standard..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async function unite#handlers#_on_cursor_moved_i..111_check_redraw..unite#redraw..unite#view#_redraw..unite#candidates#_recache..unite#helper#call_hook..102, line 1 Vim(let):E716: Key not present in Dictionary: sourcedirectory, ':p')) [unite.vim] Error occured in calling hook "on_post_filter"! [unite.vim] Source name is file_rec/async

Shougo commented 11 years ago

OK. I fixed it.

altunyurt commented 11 years ago

Thank you. I don't get any error messages, but still no file listed, only a red prompt line in an empty buffer window shows up upon <leader>r

Shougo commented 11 years ago

Yes. You must install vimproc. You must read documentation of file_rec/async.

altunyurt commented 11 years ago

but i already have vimproc in my bundle, :scriptnames lists the following 95: ~/.vim/bundle/vimproc.vim/autoload/vimproc.vim 96: ~/.vim/bundle/vimproc.vim/autoload/vimproc/util.vim is there anyway i can check if there's any problem with my settings or the plugin itself, such as flags like -verbosity i.e.?

Shougo commented 11 years ago

I think you didn't build vimproc in your system. You should check error message by ":mes" command.

altunyurt commented 11 years ago

oh shi... indeed i forgot to compile vimproc :) it works like a charm now, sorry for the disturbance.