Shougo / unite.vim

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

Duplicate results in file_rec/async #647

Closed quanganhdo closed 10 years ago

quanganhdo commented 10 years ago

I often got duplicate results when using file_rec/async. My vimrc config is here: https://github.com/quanganhdo/vimrc/blob/master/vimrc

Please let me know if you need any more debug info. Thanks!

screen shot 2014-07-10 at 8 25 30 pm

Shougo commented 10 years ago

I cannot reproduce the problem. Please read this template and upload minimal .vimrc and reproduce ways I can testing.

https://github.com/Shougo/unite.vim/issues/584

quanganhdo commented 10 years ago

Problems summary

Duplicate results in file_rec/async

Expected

All files appear once.

Environment Information

OS: Mac OS X 10.9
Vim version: 7.4

Minimal vimrc less than 50 lines

let g:unite_win_height = 10
let g:unite_split_rule = 'botright'
let g:unite_source_history_yank_enable = 2
let g:unite_enable_start_insert = 1
if executable('ag')
    let g:unite_source_grep_command = 'ag'
    let g:unite_source_grep_default_opts =
    \ '--line-numbers --nocolor --nogroup --hidden --ignore ' .
    \  '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
    let g:unite_source_grep_recursive_opt = ''
endif
call unite#custom#source('file_rec,file_rec/async', 'max_candidates', 0)
call unite#custom#source('file_rec,file_rec/async', 'ignore_pattern', join([
    \ '\.\(git\|svn\|vagrant\)\/', 
    \ 'tmp\/',
    \ 'app\/storage\/',
    \ 'bower_components\/',
    \ 'fonts\/',
    \ 'sass-cache\/',
    \ 'node_modules\/',
    \ '\.\(jpe?g\|gif\|png\)$',
    \ ], 
    \ '\|'))
call unite#filters#matcher_default#use(['matcher_fuzzy', 'matcher_hide_hidden_files', 'matcher_project_files'])
call unite#filters#sorter_default#use(['sorter_selecta'])
call unite#custom#profile('default', 'context', {
    \ 'here': 1,
    \ 'prompt_direction': 'top'
    \ })

nnoremap <silent> yf :<C-u>Unite -immediately file_rec/async:!<cr>
nnoremap <silent> yl :<C-u>Unite -immediately file_rec/git:--cache:--others:--exclude-standard<cr>
nnoremap <silent> yb :<C-u>Unite buffer_tab<cr>
nnoremap <silent> ya :<C-u>Unite tag<cr>
nnoremap <silent> yt :<C-u>Unite outline<cr>
nnoremap <silent> ym :<C-u>Unite file_mru<cr>
nnoremap <silent> yg :<C-u>Unite -buffer-name=grep -resume -multi-line grep:.<cr>
nnoremap <silent> yk :<C-u>Unite history/yank<cr>
nnoremap <silent> yh :<C-u>Unite help<cr>

Link to cache file in ~/.cache/unite/file/rec: https://dl.dropboxusercontent.com/u/46962/%3D%2BUsers%3D%2Bquanganhdo%3D%2BDropbox%3D%2BSource%3D%2Bemberjs%3D%2Blinkage

I can't reproduce it every time. About one in five ten times there will be duplicates and I have to use Ctrl+L to refresh the list.

Shougo commented 10 years ago

Minimal vimrc less than 50 lines

It is only unite.vim section. Please upload executable .vimrc.

I can't reproduce it every time. About one in five ten times there will be duplicates and I have to use Ctrl+L to refresh the list.

Oh, it is too bad.

Shougo commented 10 years ago

I can't reproduce it every time. About one in five ten times there will be duplicates and I have to use Ctrl+L to refresh the list.

Please upload reproducable ways. I cannot fix it...

Shougo commented 10 years ago

Please check your vimproc and unite.vim versoin. It is latest?

quanganhdo commented 10 years ago

Yes, both are at latest versions.

My vimrc is at https://github.com/quanganhdo/vimrc/blob/master/vimrc

On Thursday, July 10, 2014, Shougo notifications@github.com wrote:

Please check your vimproc and unite.vim versoin. It is latest?

— Reply to this email directly or view it on GitHub https://github.com/Shougo/unite.vim/issues/647#issuecomment-48613016.

quanganhdo commented 10 years ago

You're amazing! Thanks a bunch!