semantic-highlight.vim icon indicating copy to clipboard operation
semantic-highlight.vim copied to clipboard

error in persisCache function when g:semanticPersistCacheLocation isn't present

Open harisund opened this issue 4 years ago • 0 comments

When starting vim without g:semanticPersistCacheLocation present (the one that defaults to $HOME . '/.semantic-highlight-cache') and then subsequently exiting vim, the persistCache function is called. This results in the following error

Error detected while processing function <SNR>39_persistCache:
Line 2:
E712: Argument of extend() must be List or Dictionary
Line 3:
E715: Dictionary required
E714: List required

It appears the problem happens here in let l:mergedCache = extend(s:readCache(), s:cache) . If you inspect the functions, if the cache location file is missing, the variables aren't set appropriately and hence the error.

harisund avatar Jan 09 '21 18:01 harisund