Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Not finding new variables #365

Closed marlun closed 9 years ago

marlun commented 11 years ago

For some reason neocomplcache doesn't update it's cache with new variables.

I'm in a function and I've got code like the following where | marks where the caret is. Here neocomplcache works fine and it finds the $qualifiedTypes variable.

$qualifiedTypes = array(1,2,3);
if (in_array($qu|

However then I add a second variable so it looks like the folllwing and then neocomplcache only shows $qualifiedTypes in the popupmenu:

$qualifiedTypes = array(1,2,3);
$qualifiedProducts = array(12,22,32);
if (in_array($qualifiedTypes, 1)) return;
if (in_array($qu|

My custom neo settings are:

let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_camel_case_completion = 1
let g:neocomplcache_enable_smart_case = 1

Any idea what could be causing this?

Shougo commented 11 years ago

I cannot represent it... But you can use :NeoBundleCachingBuffer to make cache manually.

ujihisa commented 11 years ago

I couldn't reproduce it as well with the config above.

marlun commented 11 years ago

Will look into it some more and see if manual cache things will make the variable available.